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

TypeNameDescription
arrayarray The array to read.
intindex Zero-based position.

Outputs

TypeNameDescription
dynamicelement The element, in the type you chose.