Calculations
Create steps in your workflow that allow calculations.
Check out our ready-made templates available when you add a step and select Step templates > Utilities. You can use the templates to create a set of pre-configured steps.
- Create an integration step.
- Click Settings and enter the following configurations:
- Method: POST
- URL:
https://integrations.nextmatter.com/g/utils/calculate
- Headers: Content-type:
application/json
- Body:
{ "formula": "insert your formula here"}
Within the formula, you can reference input fields of previous steps by using data references.
- If you want to use the calculation result in later steps add the result variable in the Response data for use in later steps. The variable's value should be
$.result
Supported operations
+ | add | 1+1 = 2 |
- | subtract | 4-2 = 2 |
/ | divide | 4/2 = 2 |
* | multiply | 2*2=4 |
** | exponents (to the power of) | 3**2 = 9 |
% | remainder (amount left over) | 5%2 = 1 |
== | equals | 2==2 = true |
< | less | 1<2 = true |
> | greater | 1<2 = false |
<= | less than | 2<=2 = true |
>= | greater than | 1>=2 = false |
in | text contained in other text | "Next" in "Next Matter" = true |
Updated 2 months ago