FlowDSL Node Catalog
If
Route the packet down the true or false branch based on a boolean expression.
Overview
| Property | Value |
|---|---|
| Node ID | core/if |
| Kind | router |
| Module | core-flowdsl |
| Repo | go-flowdsl |
| Handler | github.com/redelay/go-flowdsl/nodes/core.If |
| Icon | lucide:git-branch |
| Color | #f59e0b |
| Tags | control-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
| Property | Type | Required | Default | UI Group | Description |
|---|---|---|---|---|---|
expr | string | yes | — | — | 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"