Code: Select all
WHEN value1 TO value2: do something
Code: Select all
10 ascii_value = 50
20 CASE ascii_value OF
30 WHEN 0 TO 31: PRINT "unprintable"
40 WHEN 48 TO 57: PRINT "numeric"
50 ENDCASE
I was puzzled why there was no syntax error on line 30.
It took me a while to spot the culprit!
I asked Gemini again in a new session, and it gave a different answer:
Code: Select all
WHEN value1, value 2
WHEN value3