1 | switch (expression) { /* Just as in C */ |
2 | case Constant1: /* Do following if expression=Constant1 */ |
3 | /* Bunch of Stuff */ break; |
4 | case Constant2: /* Do following if expression=Constant2 */ |
5 | /* Bunch of Stuff */ break; |
6 | default: |
7 | /* Bunch of Stuff */ break; |
8 | } |