FlowDSL Node Catalog

If

Route the packet down the true or false branch based on a boolean expression.

Overview

PropertyValue
Node IDcore/if
Kindrouter
Modulecore-flowdsl
Repogo-flowdsl
Handlergithub.com/redelay/go-flowdsl/nodes/core.If
Iconlucide:git-branch
Color#f59e0b
Tagscontrol-flow, condition, router

Description

Expression language: {{.field}}, comparisons (==, !=, <, <=, >, >=), boolean ops (&&, ||, !), string literals in double quotes, numeric literals, true / false / null. Parentheses supported.

Outputs

  • true — (no description)
  • false — (no description)

Settings

PropertyTypeRequiredDefaultUI GroupDescription
exprstringyes——Boolean expression. Example: {{.status}} == "active" && {{.count}} > 0.

Example

yaml
# Use this node in a flow:
nodes:
  - id: my_step
    name: My Step
    kind: router
    action_ref: core/if
    config:
      expr: "value"