Switch statement (TADS)

From IFWiki

Syntax

In TADS 2 and TADS 3:

switch ( expression )
{
   case constantExpression-1: statement(s)
   case constantExpression-2: statement(s)
   . . .
   case constantExpression-n: statement(s)
   default: statement(s)
}

Note that both the case-clauses and the default-clause of a switch-statement are optional.

Example

TODO

Description

TODO

Related statements: if, break.