LOTUSSCRIPT LANGUAGE


Select Case statement
Example

Selects a group of statements to execute, based on the value of an expression.

Syntax

Select Case selectExpr

[ Case condList

[ statements ] ]

[ Case condList

[ statements ] ]

...

[ Case Else

[ statements ] ]

End Select

Elements

selectExpr


condList statements
Usage

The selectExpr is compared against each condition, within each condList in succession. The first time that a condition in some condList is satisfied, the group of statements associated with that condList is executed and the selection operation ends.

Either a single group of statements is executed, or no statements are executed. If you include a Case Else group of statements, it’s executed only if selectExpr fails all conditions in all condList arguments.

Example
See Also