Select

Flow control Pure Generic
Select
Index 0
Result

Description

Returns one of N option values based on a zero-based index. Pure function — all option inputs are evaluated. Fails the pipeline if the index is out of range.

When to use

Use Select when you have a small fixed set of candidate values and want to pick one by numeric index — for example, indexing into an enum-like list of strings or constants. Because Select is pure, every option input is evaluated, so avoid wiring expensive side-effecting computations directly to its option pins. For runtime branching of execution (not just values), use Branch or Switch instead.

Pins

Input pins

Pin Type Default Notes
Index integer 0 Zero-based position picking which option pin to return.

Output pins

Pin Type Notes
Result generic The value of the option pin at the given index.

Example

Translate a weekday number (0–6) into a string label. Configure the Select node with seven string option pins (“Sun” through “Sat”), then wire the day-of-week index into the Index input. The Result output carries the matching label and can be wired into the Message input of Log message.

See also