TinTin++ Mud Client Manual

Command: #switch {conditional} {arguments}

         The switch command works similar to the switch statement in other
         languages. When the 'switch' command is encountered its body is parsed
         and each 'case' command found will be compared to the conditional
         argument of the switch and executed if there is a match.

         When comparing strings both the switch and case arguments must be
         enclosed in quote characters.

         If the 'default' command is found and no 'case' statement has been
         matched the default command's argument is executed.

Example: #switch {1d4} {#case 1 cackle;#case 2 smile;#default giggle}

Related: statements