Re: SWITCH problem - need thoughts
- Posted by xecronix Apr 15, 2016
- 1663 views
Also, does the following code work on your dev environment?
constant ctrl1=8247618 constant ctrl2=9247618 constant ctrl0=0 atom evntownr=ctrl2 switch evntownr do case ctrl1 then puts(1, "CASE ONE 8247618") case ctrl2 then puts(1, "CASE TWO 9247618") case else puts(1, "CASE THREE Uhh... what?") end switch puts(1, "\n")
I played with this in both compiled and interpreted modes and it worked as expected each time.
-Xecronix