array.get
The element at index (0 = first, negative counts from the end: -1 = last). An index outside the array is a runtime error.
array.get(id: array<any>, index: int) -> element type
Parameters
idarray<any>: The array; na stops the script with a runtime error.indexint: Position, 0 = the first element; a negative index counts from the end (-1 = the last). Outside the array or na stops the script with a runtime error.
Example
last = a.get(-1)