Wednesday, May 23, 2018

AmpScript and conditional statements - Snippet One

%%[ 
Set @fname = recipient_first
]%% 

%%=IF(EMPTY(@fname),"NoName",@fname)=%%
IF The system returns the value “NoName” if the @fname variable is empty. ELSE, It returns the value of the @fname variable if it is NOT empty.

Just a quick snippet but many more to follow.

No comments:

Post a Comment

Generate reports from Opportunities using a Visualforce Page in Salesforce

  Step 1: Create a Visualforce Page Go to the Setup menu in Salesforce. Search for "Visualforce Pages" in the Quick Find box and c...