ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 134 - Certified Marketing Cloud Developer discussion

Report
Export

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
Answers
A.
%%[IF @level == 'premier' THEN SET @message = You are premier member
B.
" ENDIF IF @level == 'premier' THEN SET @message = 'Upgrade to premier now
Answers
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!
Answers
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!
Answers
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]%%
Answers
E.
%%IF(@level == 'premier') THEN 'Upgrade to premier now!' ELSE 'You are a premier member' ENDIF]%%
Suggested answer: C
asked 23/09/2024
Fatmata Kabba
51 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first