$subtract
$subtract
operator lets you subtract one value from another and return the result of the expression. You can use this in any Expression Object.
Syntax
Properties
Field | Description | Required |
---|---|---|
<val_1> | The value to be subtracted from.
The It can also be a Magical Autocomplete. | true |
<val_2> | The value to be subtracted from It can also be a Magical Autocomplete. | true |
Returns
float
- The result of $subtract operation
Examples
Basic example
The above expression returns 8.0
With Nested Expressions
The above expression calculates the nested expression, return 3 in its place and then the outer $subtract
expression returns -1 overall.
With Magical Autocomplete
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
Last updated