Select Exec
Merges multiple execution paths and outputs the index of the triggered input.
The Select Exec node is a flow control utility that merges multiple execution inputs into a single output.
When any of the Exec inputs are triggered, the node will:
1. Fire its single Exec output.
2. Output the zero-based index of the input that was triggered on the Index port.
This is useful when multiple different events should trigger the same sequence of actions, but you need to know which event was the source.
For example, if you have three buttons that all trigger the same logic, you can connect them to Exec[0], Exec[1], and Exec[2]. When a button is pressed, the node will output the corresponding index (0, 1, or 2).
Inputs#
| Port | Description |
|---|---|
| The execution inputs to merge. |
Outputs#
| Port | Description |
|---|---|
| The merged execution path. | |
| The index of the incoming execution that triggered this node. |
ID: core/select-exec@v1