marketing-cloud-developer question 135 discussion

View all Certified Marketing Cloud Developer here
back to salesforce forum

Question 135

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]%%
Answer:

C


User Votes:
A
50%
B
50%
C 2 votes
50%
D 1 votes
50%
E 1 votes
50%
Discussions
0 / 1000
carloscuartasm
1 year, 8 months ago

D. %%=IIF @level == premier, You are a premier member" Upgrade to premier now!

Buonve
4 months, 4 weeks ago

The Correct answer is within asnwer C which is not formatted correctly