FlowDSL Node Catalog

Math

Apply an arithmetic operation over one or two numeric fields.

Overview

PropertyValue
Node IDcore/math
Kindtransform
Modulecore-flowdsl
Repogo-flowdsl
Handlergithub.com/redelay/go-flowdsl/nodes/core.Math
Iconlucide:calculator
Color#8b5cf6
Tagsmath, transform

Outputs

  • out — (no description)

Settings

PropertyTypeRequiredDefaultUI GroupDescription
aConstnumber———Constant used if aPath is empty.
aPathstring———Dotted path to operand A.
bConstnumber———
bPathstring———Dotted path to operand B (required for binary ops).
opstring (add|sub|mul|div|…)yesadd—
outputKeystringyesresult—

Example

yaml
# Use this node in a flow:
nodes:
  - id: my_step
    name: My Step
    kind: transform
    action_ref: core/math
    config:
      aConst: 1.0
      aPath: some.packet.path
      bConst: 1.0
      bPath: some.packet.path
      op: add
      outputKey: result