Skip to main content

Math nodes

All output their result under result.


Add / Subtract / Multiply

@wf::math:add · MathAddNode @wf::math:subtract · MathSubtractNode @wf::math:multiply · MathMultiplyNode

FieldTypeDefault
anumber0
bnumber0

Output: { "result": <a op b> }


Divide

@wf::math:divide · MathDivideNode

FieldTypeDefault
anumber0
bnumber1

Fails if b is 0. Output: { "result": <a / b> }


Round

@wf::math:round · MathRoundNode

FieldTypeDefaultNotes
valuenumber0
precisionnumber0Decimal places.

Output: { "result": <rounded> }


Min / Max

@wf::math:min · MathMinNode @wf::math:max · MathMaxNode

FieldTypeNotes
valuesjsonRequired. A non-empty array, e.g. [3, 1, 4]. Supports {{ }}.

Fails on an empty or non-array value. Output: { "result": <min/max> }