|KiXtart 2001 Manual|
Select Case … EndSelect
SELECT statement is an
efficient way to write a series of If-Endif
A SELECT statement consists of one or more conditions (CASE)
each of which is followed by one or more statements that are executed only
if the condition evaluates to TRUE. The SELECT
statement is processed from top to bottom. If an expression evaluates to
TRUE, the statements immediately following it are executed, up to the next
Only one CASE
statement is executed, regardless of how many statements evaluate to TRUE.
If expression does not contain any relational operators, the condition
is considered to be true if it is numeric and if it evaluates to a value
other than zero, or if it is alphanumeric and it evaluates to a string
containing at least one character.
If Else Endif