List of questions
Related questions
Question 134 - Certified Marketing Cloud Developer discussion
A developer wants to include an AMPscript if/else statement in an email to satisfy the condition "if the subscriber's tier is not premier then display heading encouraging them to upgrade." The tier value has already been set as variable named @level. How should the developer write this AMPscript conditional statement?
A.
%%[IF @level == 'premier' THEN SET @message = You are premier member
B.
" ENDIF IF @level == 'premier' THEN SET @message = 'Upgrade to premier now
C.
'" ENDIF]%% %%=v(message)=%%%%=IF(@level IS 'premier', Upgrade to premier now! You are a premier member%%=IIF(@level = 'premier', 'You are a premier member!', Upgrade to premier now!
D.
%%=IIF @level == premier, You are a premier member" Upgrade to premier now!
E.
%%IF(@level == 'premier') THEN 'Upgrade to premier now!' ELSE 'You are a premier member' ENDIF]%%
Your answer:
0 comments
Sorted by
Leave a comment first