IIF condition
Simplified Personalization: Mastering the IIF() Function in AMPscript IIF() is a shorthand conditional function that returns one value if a condition is TRUE and another value if the condition is FALSE. Syntax IIF(condition, TrueValue, FalseValue) IIF is good for Simple two-way decisions . Use Case 1: Personalized Greeting %%[ VAR @FirstName, @LastName, @Gender, @Greetings SET @FirstName=AttributeValue("FirstName") SET @LastName=AttributeValue("LastName") SET @Gender=AttributeValue("Gender") SET @Greetings = IIF( EMPTY(@Gender),"Customer",IIF(@Gender=="Male","Mr.","Ms")) ]%% Dear %%=v(@Greetings)=%% %%=v(@FirstName)=%% Use Case 2: Loyalty Member Classification Business Requirement Classify customers based on their membership status. Rules ...