getListItem gestListItem
Returns the item of the list at the given index.
Category
List
Function syntax
getListItem(<parameters>)
Parameters
Signatures and returned type
getListItem(<listInteger>,<index>)
Returns an integer.
getListItem(<listDecimal>,<index>)
Returns a decimal.
getListItem(<listString>,<index>)
Returns a string.
getListItem(<listDateTimeOnly>,<index>)
Returns a datetime without considering time zone.
getListItem(<listDateTime>,<index>)
Returns a datetime.
getListItem(<listDateOnly>,<index>)
Returns a list of dates.
getListItem(<listBoolean>,<index>)
Returns a boolean.
getListItem(<listDuration>,<index>)
Returns a duration.
Example
getListItem([10, 2, 3], 1)
Returns “2â€
getListItem(["A", "B", "C"], 2)
Returns “Câ€
Examples with an event field ‘event.appVersion’ with value: “20.45.2.3434â€
split(@event{event.appVersion}, "\\.")
Returns ["20", "45", "2", "3434"]
getListItem(split(@event{event.appVersion}, "\\."), 0)
Returns “20â€