QuestionQ112

VerifiedScripting and Automation

A developer needs to include an AMPscript If/Else statement in an email to satisfy the condition: “if the subscriber’s tier is not premier, then display a heading encouraging them to upgrade.” The tier value has already been assigned to a variable named @level.

How could the developer write this AMPscript conditional statement?

Explanation

AMPscript Iif() evaluates a condition and returns the second value when the condition is true or the third value when it is false. Testing whether @level is premier therefore returns the premier-member heading for premier subscribers and the upgrade heading for every other tier.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!