marketing-cloud-developer question 142 discussion

View all Certified Marketing Cloud Developer here
back to salesforce forum

Question 142

Certification Aid created following AMPscript code: %%[ SET @var1 = 10 SET @var2 = 20 SET @var3 =
30 ]%% How can the three variables be summed up to evaluate to 60? Choose 1.

  • A. SET @total = Sum(@var1, @var2, @var3)
  • B. SET @total = Add(@var1, Add(@var2, @var3))
  • C. SET @total = Add(@var1, @var2, @var3)
  • D. SET @total = @var1 + @var2 + @var3
Answer:

B


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

B. SET @total = Add(@var1, Add(@var2, @var3))

SFMC
6 months, 3 weeks ago

SET @total = Add(@var1, @var2, @var3)