Restituisce l'elemento dell'elenco in corrispondenza dell'indice specificato.
Elenco
getListItem(<parameters>)
Parametro | Tipo |
---|---|
list | listString |
list | listBoolean |
list | listInteger |
list | listDecimal |
list | listDuration |
list | listDateTime |
list | listDateTimeOnly |
list | listDateOnly |
index | numero intero |
getListItem(<listInteger>,<index>)
Restituisce un numero intero.
getListItem(<listDecimal>,<index>)
Restituisce un valore decimale.
getListItem(<listString>,<index>)
Restituisce una stringa.
getListItem(<listDateTimeOnly>,<index>)
Restituisce un valore datetime senza considerare il fuso orario.
getListItem(<listDateTime>,<index>)
Restituisce un valore datetime.
getListItem(<listDateOnly>,<index>)
Restituisce un elenco di date.
getListItem(<listBoolean>,<index>)
Restituisce un valore booleano.
getListItem(<listDuration>,<index>)
Restituisce una durata.
getListItem([10, 2, 3], 1)
Restituisce "2"
getListItem(["A", "B", "C"], 2)
Restituisce “C”
Esempi con un campo evento "event.appVersion" con valore: "20.45.2.3434"
split(@{event.appVersion}, "\\.")
Restituisce ["20", "45", "2", "3434"]
getListItem(split(@{event.appVersion}, "\\."), 0)
Restituisce "20"