Maths
Arithmetic
Section titled “Arithmetic”The four operations, plus modulo and power.
| Inputs | a, b (numbers) |
| Outputs | result (number) |
| Configuration | op: add, sub, mul, div, mod, pow |
Comparator
Section titled “Comparator”Compares two values and returns a boolean — unlike If, which branches.
| Inputs | a, b |
| Outputs | result (boolean) |
| Configuration | operator: lt, lte, eq, gte, gt, ne, contains |
Use it when the result has to be carried (stored in a variable, sent inside a request body) rather than routed down two ways.
The unary functions and the bounds.
| Inputs | a (number), precision (number) |
| Outputs | result (number) |
op | Effect | Fields used |
|---|---|---|
round | Rounds | precision |
floor | Rounds down | — |
ceil | Rounds up | — |
trunc | Truncates | — |
abs | Absolute value | — |
sign | Sign (-1, 0, 1) | — |
sqrt | Square root | — |
min | Minimum | b |
max | Maximum | b |
clamp | Bounds | min, max |
For a simple calculation inside a text field, the
Handlebars helpers {{add}},
{{multiply}}, {{round}} and {{toFixed}} save you adding a box.