Re: switch / case statements
Posted: Thu Sep 15, 2016 6:15 am
I think this is brilliant and just what i was looking for in another language. Is there any error handling for it? I think i feel a feature request coming on....
-->
Open Community Forum for ESP8266, Come share Arduino and IoT (Internet of Things)
https://www.esp8266.com/
for option = -1 to 4
gosub word("[Option1] [Option2] [Option3]", option)
next option
end
[Option1]
print "option1"
return
[Option2]
print "option2"
return
[Option3]
print "option3"
return