FlowDSL Node Catalog
Assert
Emit an error if the boolean expression evaluates to false.
Overview
| Property | Value |
|---|---|
| Node ID | core/assert |
| Kind | action |
| Module | core-flowdsl |
| Repo | go-flowdsl |
| Handler | github.com/redelay/go-flowdsl/nodes/core.Assert |
| Icon | lucide:check-circle |
| Color | #10b981 |
| Tags | validation, assert |
Outputs
out— (no description)
Settings
| Property | Type | Required | Default | UI Group | Description |
|---|---|---|---|---|---|
expr | string | yes | — | — | Boolean expression (same language as core/if). |
message | string | — | assertion failed | — |
Example
yaml
# Use this node in a flow:
nodes:
- id: my_step
name: My Step
kind: action
action_ref: core/assert
config:
expr: "value"
message: assertion failed