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.
To sum up multiple variables in AMPscript, the Add function should be used. The Add function can be nested to handle multiple values.
Example:
%%[ SET @total = Add(@var1, Add(@var2, @var3)) ]%%
[: Salesforce AMPscript Add Function, , , , ]
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit