条件格式在精确的目标个性化主题行 [英] Conditional Formatting in ExactTarget Personalized Subject Line

查看:99
本文介绍了条件格式在精确的目标个性化主题行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用ExactTarget个性化设置条件格式?如果名字存在,我只想显示标点符号。

How can I setup conditional formatting using ExactTarget personalization? I want to only show the punctuation if the first name exists.

例如,如果名称存在主题是 NAME!其余的主题。但如果姓名字段为空白,则其他主题。

For example, if name exists subject is NAME! Rest of Subject. but if the name field is blank then Rest of Subject.

%% first_name %%!其余的主题。最终返回

%% first_name %%! Rest of Subject. ends up returning ! Rest of Subject. if my first_name value is blank.

推荐答案

%%[
If Not Empty([first_name]) Or [first_name] != "" Then
    Set @salutation = Concat(ProperCase([first_name]),'! ')
Else
    Set @salutation = ""
EndIf
]%%

%% = v(@salutation)= %%其他主题。

%%=v(@salutation)=%%Rest of Subject.

注意:


  • 假设名字列为first_name;

  • 假设first_name列可能以NULL或空格的形式出现;

  • 在感叹号后面出现的空格在变量中;

将此放在电子邮件中,在主题行输入字段中插入: %% = v(@salutation)= %%其他主题。

Place this in the email, and in the subject line input field, insert: %%=v(@salutation)=%%Rest of Subject.

这篇关于条件格式在精确的目标个性化主题行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆