Switch Statement Case Evaluation?
Posted
by TheDarkIn1978
on Stack Overflow
See other posts from Stack Overflow
or by TheDarkIn1978
Published on 2010-06-05T08:12:30Z
Indexed on
2010/06/05
8:22 UTC
Read the original article
Hit count: 198
actionscript-3
|switch-statement
i would like to have cases that evaluate the expression in my switch statement. is this not possible?
switch (zSpeed)
{
case (zSpeed > zMax): this.zSpeed = zMax; break;
case (zSpeed < 0): this.zSpeed = 0; break;
default: this.zSpeed = zSpeed;
}
© Stack Overflow or respective owner