INDEX

Parameters

OrderNameTypeDesc
1indexConstThe index in the list

Returns

Places item number index from the preceding map or list onto the stack.

Description

This function returns a single item from a map or list based on the one-based index number.

For example, if you have an asset list containing assets #33, #83 and #1223, the command 1 INDEX will return the first item from the list, #33.

This function will consume the list, so it might be worth using SET or PUT before-hand.

Macros

A shortcut to getting the first item from the list is the FIRST macro.

See Also