Select(
     int:index,
     var:value1,
     [var:value2...]
)
var

Arguments

index

Index of value to return.

value1

First value (index 0)

value2...

Optional. Second value (index 1)...

Return value

Value at the specified index.

Description

Returns the value identified by the specified index. The index of the first item is 0.

This performs an array-like function (the evaluator does not currently support arrays).

Example:

day = 3;
Output(Select(day, "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"));
--> Thu