Skip to content

Condition

The Condition operation implements if/else logic. It evaluates the If input and forwards either the True or False input to its output. The execution path is never stopped — downstream operations always receive a result.

With If unconnected the Condition always takes True, which the Editor notes with an info ring on If; with neither True nor False connected Out is always Nil, and the Editor flags the Node with a warning frame.

Condition operation

Inputs

PortTypeRequiredDescription
IfAnyNoCondition control. Boolean true or non-Nil selects the True input; false, Nil, or unconnected selects True by default (unconnected) or False (false/Nil).
TrueUser-configurableNoValue forwarded when the condition is truthy. Accepted MessagePack types are set in the Node’s Settings panel — see Setting Port Types.
FalseUser-configurableNoValue forwarded when the condition is falsy. Accepted types set in Settings.

Outputs

PortTypeDefaultDescription
OutUser-configurableNilThe selected input value (True or False). Accepted types set in Settings.

Properties

This operation has no configurable properties. Port types for True, False and Out are set in the Node’s Settings panel.

Its Node carries the On Error verb every fallible Operation carries — see the Error Handling guide.

State on Reload

Output is preserved across restarts within the configured time window.


  1. Evaluate If — The If input is checked:

    • Boolean true or non-Nil value → select True input.
    • Boolean false or Nil → select False input.
    • Not connected → True input is always selected.
  2. Forward — The selected input value is passed directly to the output without transformation.


InputValue
Iftrue
True"Status: ON"
False"Status: OFF"

Output: "Status: ON"


  • Conditional data routing based on a boolean flag or the presence/absence of data
  • Implementing if/else branches in data processing workflows
  • Selecting between default and override values

  • Only two branches (true/false). For multi-way branching, chain multiple Condition operations.
  • No data transformation is performed; the selected input is forwarded as-is.