Array Get
Get an item from an array at a specified index.
Inputs#
| Port | Description |
|---|---|
| The array to get an item from. | |
| The zero-based index of the item to get. | |
| If true, stops with an error if the index is out of bounds. If false, returns a default value instead. |
Outputs#
| Port | Description |
|---|---|
| The item at the specified index. |
Addendum#
Retrieves an item from an array using a zero-based index.
Behavior#
If the index is out of bounds, the node's behavior is controlled by the Bound Check input:
- true (default): The node will stop and report an "index out of bounds" error.
- false: The node will output a default value corresponding to the array's element type (e.g., 0 for numbers, an empty string "" for text).
ID: core/array-get@v1