$subtract
Last updated
Last updated
$subtract
operator lets you subtract one value from another and return the result of the expression. You can use this in any Expression Object.
Field | Description | Required |
---|---|---|
float
- The result of $subtract operation
The above expression returns 8.0
The above expression calculates the nested expression, return 3 in its place and then the outer $subtract
expression returns -1 overall.
Let's say we have declared a variable temp
in our API flow, which has a value of 5 currently.
The above expression would resolve to a result of 2.0
<val_1>
The value to be subtracted from.
The <val_1>
can be any valid expression as long as it resolves to a number.
It can also be a Magical Autocomplete.
true
<val_2>
The value to be subtracted from val_1
The <val_2>
can be any valid expression as long as it resolves to a number.
It can also be a Magical Autocomplete.
true