Kai345: case

Beitrag lesen

[latex]Mae  govannen![/latex]

Hallo,

besteht die Möglichkeit bei switch-case-Anweisungen auch mehrere Fallmöglichkeiten für case anzugeben?

Bsp.:

switch (fall) {
   case 1,3,8:
      ...
   case 2:
      ...

usw.

  
~~~javascript
switch(fall) {  
  case 1:  
  case 3:  
  case 8:  
    ...  
    break;  
  case 2:  
    ...  
    break;  
  case 4711:  
    ...  
    break;  
}

Cü,

Kai

--
When the limos return for their final review, it's all thru'
- all they can see is the morning goo.
"There's no-one left alive - must be draw."
So the Blackcap Barons toss a coin to settle the score.
ie:{ fl:( br:< va:) ls:? fo:| rl:? n4:° ss:{ de:] js:| ch:? mo:| zu:|]