Skip to main content

get (Function)

Function returns the value at the specific index, null if index is out of range.

Syntax

<OBJECT|INT|LONG|FLOAT|DOUBLE|BOOL|STRING> list:get(<OBJECT> list, <INT> index)

Query Parameters

NameDescriptionDefault ValuePossible Data TypesOptionalDynamic
listAttribute containing the listOBJECTNoYes
indexIndex of the elementINTNoYes

Example 1

list:get(stockSymbols, 1)

This returns the element in the 1st index in the stockSymbols list.