Select Data
Selects one value from a list of choices based on an index.
This node outputs a single value from the Choices list. The value to be output is determined by the Index input.
The Index is 0-based, meaning 0 selects the first item, 1 selects the second, and so on.
If the Index is outside the range of available choices, the node will produce an error.
Example#
| Index Input | Choices Input | Value Output |
|---|---|---|
1 |
["Red", "Green"] |
"Green" |
0 |
[100, 200, 300] |
100 |
Inputs#
| Port | Description |
|---|---|
| The 0-based index of the choice to select. | |
| The list of values to select from. |
Outputs#
| Port | Description |
|---|---|
| The selected choice. |
ID: core/select-data@v1