Home / lang / choose 
Choose
Syntax
Value = Choose ( Choice , Result #1 , Result #2 [ , ... ] )

This function returns the value of one of its Result #i arguments, according to the value of Choice.

Example
X = 3
PRINT Choose(X, "one", "two", "three", "four")

three
Example
X = 3
PRINT IsNull(Choose(X * 2, "one", "two", "three", "four"))

True


See also
Test Control Structures & Functions