TurboScript icon indicating copy to clipboard operation
TurboScript copied to clipboard

User wants to have switch statement

Open nidin opened this issue 8 years ago • 0 comments

What? User wants to have ecmascript switch statement

How?

switch (axis) {
    case Axis.AxisX:
        left = this.min.x <= point;
        right = this.max.x >= point;
        break;
    case Axis.AxisY:
        left = this.min.y <= point;
        right = this.max.y >= point;
        break;
    case Axis.AxisZ:
        left = this.min.z <= point;
        right = this.max.z >= point;
        break;
}

nidin avatar Mar 30 '17 16:03 nidin