Add

This function returns the sum of two numbers.

Arguments

Add(1,2)

Ordinal Type Required Description
1 Number True First value
2 Number True Second value

Example 1

%%[

var @sum, @num1, @num2

set @num1 = 5
set @num2 = 42

set @sum  = Add(@num1, @num2)

]%%
%%=v(@num1)=%% + %%=v(@num2)=%% = %%=v(@sum)=%%

Output

5 + 42 = 47

Example 2


Not a subscriber? Subscribe now.