[flexcoders] Re: Multiple conditions in a case (switch/case)

2010-02-14 Thread Flex
Did you try

case kids,siblings:

comma separated instead of ||?

Web Manager
FlexDownloads.com

--- In flexcoders@yahoogroups.com, Wally Kolcz wko...@... wrote:

 I feel stupid for not knowing this, but I guess its never come up. How 
 do you do multiple conditions on a case statement in a switch. I am 
 trying to figure out age so the case says something like 'case kids || 
 siblings'. Doesn't seem to be working.





[flexcoders] Re: Multiple conditions in a case (switch/case)

2010-02-13 Thread Jeff
Syntax is something like:

case kids:
case Siblings:
 // do kid / sibling stuff
 break;
case something else

 It confused me the first time I saw it. 

--- In flexcoders@yahoogroups.com, Wally Kolcz wko...@... wrote:

 I feel stupid for not knowing this, but I guess its never come up. How 
 do you do multiple conditions on a case statement in a switch. I am 
 trying to figure out age so the case says something like 'case kids || 
 siblings'. Doesn't seem to be working.