Default

20% Command group 20% Flag affected 20% Reversible 20% Execute on client 20% Platform(s)
Constructs NO NO YES All

Syntax

Default

Description

This command marks the block of commands to be run when there is no matching case in a Switch statement. When a Switch–Case construct is used, the Default command marks the start of a block of commands that are executed if none of the preceding Case statements are executed.

Example

# Sound the bell if lName is not equal to Fred or Jim
Switch lName
  Case 'Fred'
    OK message {Fred}
  Case 'Jim'
    OK message {Jim}
  Default
    OK message (Sound bell ) {Neither Fred nor Jim}
End Switch