Re: New switch/case idea

new topic     » goto parent     » topic index » view thread      » older message » newer message
Fernando said...

Does that mean the meaning of break depends on context ?

break will always break the inner most construct, unless given a label:

X = 1 
condition = 1 
if condition label "top_if" then 
   switch X with fallthru do 
      case 1 then 
         ? 1 
         break "top_if" 
      case 2 then 
         ? 2 
   end switch 
   ? 3 
end if 

Jeremy

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

Search



Quick Links

User menu

Not signed in.

Misc Menu