SWITCH in Scol » History » Version 1
  iri, 09/25/2012 12:12 AM 
  
| 1 | 1 | iri | h1. SWITCH in Scol | 
|---|---|---|---|
| 2 | |||
| 3 | *switch* / *case* is not yet supported by Scol. | ||
| 4 | You should use something like this : | ||
| 5 | |||
| 6 | <pre> | ||
| 7 | if <condition_1> then | ||
| 8 | ... | ||
| 9 | else if <condition_2> then | ||
| 10 | ... | ||
| 11 | else if <condition_N> then | ||
| 12 | ... | ||
| 13 | else | ||
| 14 | ...; | ||
| 15 | </pre> |