Subtract()

Returns the result of subtracting the second parameter from the first parameter.

Availability 

Marketing Cloud Engagement ✅ Yes
Marketing Cloud Next ✅ Yes

This function became available in Marketing Cloud Next during the Summer ’26 release (API version 67.0).

Syntax 

1Subtract(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.

1%%=Subtract(512,256)=%%

The function returns the difference of the two numbers: 256.