Returns the result of subtracting the second parameter from the first parameter.
Availability
<table> <tr> <td>Marketing Cloud Engagement</td> <td>✅ Yes</td> </tr> <tr> <td>Marketing Cloud Next</td> <td>✅ Yes</td> </tr> </table>This function became available in Marketing Cloud Next during the Summer ’26 release (API version 67.0).
Syntax
Subtract(minuend, subtrahend)
The Subtract() function has two parameters:
minuend(number): Required. The initial number.subtrahend(number): Required. The number to subtract from the minuend.
Usage
To use this function, pass it two numbers. The numbers can be positive or negative integer or decimal numbers.
%%=Subtract(512,256)=%%
The function returns the difference of the two numbers: 256.