choose
Pick from a list by integer index.
Syntax
Section titled “Syntax”v = choose(index_num, value1, value2, ...)Description
Section titled “Description”Returns the index_num-th value (1-based) from the list. index_num = 1 returns value1, 2 returns value2, etc.
Example
Section titled “Example”choose(2, 'red', 'green', 'blue') % 'green'