YENGswitch

From OpenSimulator

Revision as of 15:51, 19 September 2020 by Ubit (Talk | contribs)

Jump to: navigation, search

switch can only work in integer expressions, or strings
break, default and '...' are keywords used with it.

examples

switch (command) {
      case "turnleft": {
          TurnLeft ();
          break;
      }
      case "turnright": {
          TurnRight ();
          break;
      }
      default: llOwnerSay ("dont know how to handle " + command);
  }
General
About This Wiki