SELECT

Top  Previous  Next

Syntax

SELECT value

Description

Sets the test value for multiple CASE statements.  Each CASE statement will contain a condition to evaluate.   Must be followed by an ENDSELECT statement.

Parameters

value - variable or condition to compare with each CASE statement

Return value

None

Remarks

See Also: CASE, CASE&, DEFAULT, ENDSELECT

Example usage

A = 1
SELECT A
     CASE 1
           PRINT "TRUE!"
     CASE 2
           PRINT "You wont see this text"
     DEFAULT
           PRINT "None of the above"
ENDSELECT