Re: New Switch Idea

new topic     » goto parent     » topic index » view thread      » older message » newer message
DerekParnell said...
integer X = 1  
switch X with fallthru 
  case 1 
    ? 1  
  case 2  
    ? 2  
end switch  
  
-- output: 
-- 1 
-- 2  

Is that output correct? If so, can somebody explain again why if the case doesn't match it still runs the code? I think it was explained before but I've forgotten the logic. getlost

I'd expect the output above to be

-- output: 
-- 1 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu