Re: SWITCH problem - need thoughts

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu