Conditional Formatting in ExactTarget Personalized Subject Line

☆樱花仙子☆ 提交于 2019-12-08 11:03:38

问题


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

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

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


回答1:


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

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

Notes:

  • This assumes that the column with first name is "first_name";
  • This assumes that the first_name column could come in as NULL or empty;
  • The space that will appear after the exclamation point is in the variable;

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



来源:https://stackoverflow.com/questions/29399160/conditional-formatting-in-exacttarget-personalized-subject-line

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!