You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Supported list types

Number list

The function returns a NUMBER representing the index of numeric value element in number list l. Zero is returned when the element is not found in l.

Syntax
indexOf(number element, number list l) #Output: Number
Examples
Parser expressionDescription
indexOf(1, [5, 2, 1, 4, 1])

The function returns the NUMBER 3

Additional information

Parameters used in this function

ParameterInput (data type)Description
<parameter>

DATA TYPE

Parameter description.
<parameter>

DATA TYPE

Parameter description.
Output

The function returns a NUMBER


Text list

The function returns a NUMBER representing the index of text element in the text list l. Zero is returned when the element is not found in l.

Syntax
indexOf(string element, string list l) #Output: Number
Examples
Parser expressionDescription
indexOf("blue", ["red", "blue", "green"])

The function returns the NUMBER 2

Additional information

Parameters used in this function

ParameterInput (data type)Description
<parameter>

DATA TYPE

Parameter description.
<parameter>

DATA TYPE

Parameter description.
Output

The function returns a NUMBER