DEFAULT

Top  Previous  Next

Syntax

DEFAULT

Description

Defines a DEFAULT execution point if all the CASE statements in a SELECT statement are FALSE.

Parameters

None

Return value

None

Remarks

Any statements after the DEFAULT statement are executed when all CASE statements are FALSE. DEFAULT is optional.

See Also: SELECT, ENDSELECT, CASE, CASE&

Example usage

SELECT A
     CASE 1
           PRINT "A = 1"
     CASE 2
           PRINT "A = 2"
     DEFAULT
           PRINT "None of the above"
ENDSELECT