Alertra Script Language 1.9

list

Returns an element from the given list. Indexes are zero based. The list value is stored in a global variable called "LIST_VALUE".

usage: list [list] [sep] [index]

parameters:

req name type description
Y list expression A string containing a list of values sepearated by a common string.
Y sep expression A string containing the separator used in the list
Y index expression Index of the element to return from the list

examples

list "foo;bar;zot" ";" "0"

Returns "foo" from the list.

list "foo;bar;zot" ";" "1"

Returns "bar" from the list.


Alertra Script Language: Language Reference