Strings & Arrays
Array Element
Reads the element at an index in an array.
array
index
Array Element
element
Node image coming soon
Usage
Indices are ints and start at 0. Set the element type on the node so the output is typed — that is what lets the editor check the wire you plug it into. Reading past the end fails at runtime, so guard with Array Length.
On the node
element type
The type of the array's elements. Types the output.
Inputs
| Type | Name | Description |
|---|---|---|
| array | array | The array to read. |
| int | index | Zero-based position. |
Outputs
| Type | Name | Description |
|---|---|---|
| dynamic | element | The element, in the type you chose. |