Re: switch statement

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

Will be great if the switch can process sequences.

The switch statement can do sequences...

  switch x do 
     case "first": 
          action1() 
          break 
     case "second": 
          action2() 
          break 
     case "another": 
          action3() 
          break 
     . . . 
 end switch 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu