Choose Function

 

Choose(number, choice1, [choice2,] [choice3,]… )

 

Returns a value from a list of arguments

 

Choose will return a null value if number is less than one or greater than the number of choices in the list.  If number is not an integer it will be rounded to the nearest integer.

 

Example:

 

 

Sub Main

    number = 2

    GetChoice = Choose(number, "Choice1", "Choice2", "Choice3")

    Print GetChoice

End Sub