I'm afraid I know the answer but I wanted to check first.
I want to run a single function based on multiple values.
Actionscript Code:switch (studentNumber)
case 1,4,8 :
trace("Good kids");
break;
case 2,3,5,6,7 :
trace("Bad kids");
break;
default :
trace("Neither");
}
As always, thanks!




Reply With Quote
