Switch Statement Case Evaluation?
- by TheDarkIn1978
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;
}