Skip to content

Maths

The four operations, plus modulo and power.

Inputsa, b (numbers)
Outputsresult (number)
Configurationop: add, sub, mul, div, mod, pow

Compares two values and returns a boolean — unlike If, which branches.

Inputsa, b
Outputsresult (boolean)
Configurationoperator: 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.

Inputsa (number), precision (number)
Outputsresult (number)
opEffectFields used
roundRoundsprecision
floorRounds down
ceilRounds up
truncTruncates
absAbsolute value
signSign (-1, 0, 1)
sqrtSquare root
minMinimumb
maxMaximumb
clampBoundsmin, max

For a simple calculation inside a text field, the Handlebars helpers {{add}}, {{multiply}}, {{round}} and {{toFixed}} save you adding a box.