Home / lang / choose 
Previous  Next  Edit  Rename  Undo  Refresh  Search  Administration   
fr  de  es  it  nl  pl  pt  pt_BR  mk  sq  ca  ar  fa  vi  ja  ru  zh  zh_TW  eo 
Documentation
History
 
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.

Examples

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

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

True

See also

Test Control Structures & Functions