The Multiply function can be used to return the value of two numbers multiplied together.
Use case: the Multiply function can be used to multiply two numerical values. Note that this function is limited to just two numbers in the equation but you can next the function if you need to add more numbers.
Syntax:
Multiply(1,2)
1 = Number of the first value in multiplication equation (number or decimal datatype)
2 = Number of the second value in multiplication equation (number or decimal datatype)
Example:
%%[
set @numbervar1 = ’23’
set @numbervar2 = ‘3’
]%%
%%=Multiply(@numbervar1,@numbervar2)=%%
Output:
69
Explanation:
In the Multiply example above, the two variables are hardcoded with the numbers ’23’ and ‘3.’ Multiplying both of those numbers together gets you the number of 69 (nice!)
The function can be used for whole numbers or decimals. The datatype for these values should be a number datatype or decimal or you can hardcode the numbers as it is shown in the example above.Multiply
Related functions are the Divide, Add, and Subtract functions.