lang • choose

Choose

Value = Choose ( Choice , Result1 , Result2 [ , ... ] )

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