Math nodes
All output their result under result.
Add / Subtract / Multiply
@wf::math:add · MathAddNode
@wf::math:subtract · MathSubtractNode
@wf::math:multiply · MathMultiplyNode
| Field | Type | Default |
|---|---|---|
a | number | 0 |
b | number | 0 |
Output: { "result": <a op b> }
Divide
@wf::math:divide · MathDivideNode
| Field | Type | Default |
|---|---|---|
a | number | 0 |
b | number | 1 |
Fails if b is 0. Output: { "result": <a / b> }
Round
@wf::math:round · MathRoundNode
| Field | Type | Default | Notes |
|---|---|---|---|
value | number | 0 | |
precision | number | 0 | Decimal places. |
Output: { "result": <rounded> }
Min / Max
@wf::math:min · MathMinNode
@wf::math:max · MathMaxNode
| Field | Type | Notes |
|---|---|---|
values | json | Required. A non-empty array, e.g. [3, 1, 4]. Supports {{ }}. |
Fails on an empty or non-array value. Output: { "result": <min/max> }