case default

Syntax

case default:

Description

A case default statement holds code below it in the event that no case statement catches the value of the variable. The case default statement must go at the end of a sequence of case statement, but above the endselect statement. Use this command in combination with case, endcase, select and endselect to create a select statement.

Example

value = 3

select value case 1: print ( "value is 1" ) endcase case 2: print ( "value is 2" ) endcase case default: print ( "no other case statement was triggered" ) endcase endselect