Select boolean

Flow control Pure Generic
Select boolean
Condition false
Result
When true
When false

Description

Returns one of two values based on a boolean condition. Pure function — both branches are evaluated.

When to use

Use Select boolean for inline ternary-style selection of a value — picking between two options based on a boolean condition without splitting the execution flow. Both inputs are always evaluated because the node is pure, so don’t wire side-effecting nodes to either branch. If you need to choose between two execution paths instead of two values, use Branch.

Pins

Input pins

Pin Type Default Notes
Condition boolean false The boolean that picks which value to return.
When true generic The value returned when condition is true.
When false generic The value returned when condition is false.

Output pins

Pin Type Notes
Result generic Either whenTrue or whenFalse, depending on condition.

Example

Label a numeric score as “pass” or “fail” before logging. Wire the Result output of Greater than? into the Condition input of Select boolean, set the When true input to "pass" and the When false input to "fail". The Result output carries the matching label and can be wired directly into the Message input of Log message.

See also