Keragon’s Math Operation helper allows you to perform basic arithmetic calculations directly within your workflows. This is useful for automating calculations, transforming numerical values, and preparing data for further processing.
How to Use the Math Operation Helper
-
Open your workflow editor.
-
Click the + icon to add a new step.
-
In the step selection panel, click "Helpers".
-
From the Helpers options, select "Math Helpers".
-
Choose the "Math Operation" action.
-
Click the Operation field and select the desired operation:
-
Addition
-
Subtraction
-
Multiplication
-
Division
-
Modulo
-
-
Click the
{}
button to switch between:-
Static Value: Manually enter numeric values.
-
Custom Expression: Map dynamic data or arrays from previous steps.
-
Using Static Values
-
Enter the numbers you want to calculate directly into the provided fields.
-
Example: Addition of
1
and2
.
Using Custom Expressions
-
Map an array of numbers or dynamic values from earlier workflow steps.
-
Example: Provide an array
[1, 2, 3]
for addition. -
Click "Save" to apply changes.
-
Click "Test Step" to preview the result.
-
Go to the Outputs tab to view the calculated value.
Example Results:
-
Operation: Addition
-
Inputs:
1
and2
-
Output:
3
-
Operation: Division
-
Inputs:
10
and2
-
Output:
5