INDEX

Parameters

OrderNameTypeDesc
1arrayanyThe multi-valued item (ie. map or array) to be searched
2keyconstThe index number in the array

Returns

Places an item of the same type as array onto the stack.

Description

This function is used to extract the nth item from any list of items.

For example, if you had an asset list on the stack containing ('TE101','TE201' and 'TE301') and used the following command…

0 INDEX

…you would end up with an asset list containing only one item - TE101.

See Also