Default

Command group Flag affected Reversible Execute on client 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