CHOOSE (<index>, <choice-1>[, <choice-2>, ... [, <choice-n>]])


Selects and returns a value based on the index variable.

LMonth=3

PRINT “The month is “;CHOOSE(lMonth,”Jan”,”Feb”,”Mar”,”Apr”)

 

See Also: Flow Control


Language Reference  Table Of Contents