CASE

Use this command in combination with SELECT, ENDCASE and ENDSELECT to create a select statement.

  Syntax
CASE Data
  Parameters
Data
Value
Enter the appropriate value here.

  Returns

This command does not return a value.

  Description

A case statement specifies the value that if matching the contents of the variable, will run the code below it.

  Example Code
SELECT var
CASE 3:
PRINT "default"
ENDCASE
ENDSELECT
WAIT KEY
  See also

CORE Commands Menu
Index