Choose

Value = Choose ( Choice , Result #1 , Result #2 [ , ... , Result #n ] )

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


Example

X = 3

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

three

PRINT IsNull(Case(X * 2, "one", "two", "three", "four"))

TRUE


Previous: CFloat Next: Chr$