Good to know, actually, because as I recall in VBA you can't do that because IIF evaluates ALL of the responses, even if they are not used. So your example would fail with an invalid number.
Pity about the CHOOSE operator, I'm a Clarion programmer and I like that minimalistic languaje, for ex, we only have a LOOP command for LOOPs:
LOOP F = 1 TO N (BY step)
. (or END at your preference)
LOOP UNTIL/WHILE
just LOOP.
Pity about the CHOOSE operator, I'm a Clarion programmer and I like that minimalistic languaje, for ex, we only have a LOOP command for LOOPs:
LOOP F = 1 TO N (BY step)
. (or END at your preference)
LOOP UNTIL/WHILE
just LOOP.