What it is for
Math Helper is a built-in flooows utility for simple calculations inside a flow: add, subtract, multiply, divide, get a remainder or pick a random number. Use it to compute totals, apply discounts or assign tasks at random.
Math Helper has no triggers: use it as an action in flows started by any other trigger.
Set up the connection
- 1No connection or external account is needed.
- 2Click "+" in your flow, search for "Math Helper" and pick the operation.
- 3Type the numbers or map values from earlier steps, then test the step.
Credentials are stored encrypted in your isolated database, in Spain, and are never shown in plain text.
How to use it in a flow
- Addition and Multiplication: fill "First Number" and "Second Number", for example an order's quantity and unit price.
- Subtraction: "Starting Number" is the initial value and "Number to Subtract" is what gets taken away.
- Division and Modulo: useful for averages or alternating assignments (remainder 0 or 1).
- Random Number: set "Minimum" and "Maximum" for draws or random distribution.
Tips
- •Use a dot as the decimal separator.
- •Chain several steps for longer formulas, or use a code step for complex ones.
Actions (6)
Operations available as flow steps. Expand each one to see its fields.
Addition2 fields
| Field | Type | Required |
|---|---|---|
| First Number | Number | Yes |
| Second Number | Number | Yes |
Subtraction2 fields
| Field | Type | Required |
|---|---|---|
| Number to Subtract | Number | Yes |
| Starting Number | Number | Yes |
Multiplication2 fields
| Field | Type | Required |
|---|---|---|
| First Number | Number | Yes |
| Second Number | Number | Yes |
Division2 fields
| Field | Type | Required |
|---|---|---|
| First Number | Number | Yes |
| Second Number | Number | Yes |
Modulo2 fields
| Field | Type | Required |
|---|---|---|
| First Number | Number | Yes |
| Second Number | Number | Yes |
Random Number2 fields
| Field | Type | Required |
|---|---|---|
| Minimum | Number | Yes |
| Maximum | Number | Yes |
Common errors
NaN or type error
The mapped value is not a number; clean it first (no currency symbol or thousands separators).
Division by zero
Add a condition beforehand to check the divisor is not 0.
Field types
"List (from your account)" loads options from your connected account; "Dynamic fields" appear depending on earlier choices; in any field you can insert data from previous steps with the data selector (e.g. {{trigger.email}}). More about data between steps