LOTUSSCRIPT LANGUAGE
Selects a group of statements to execute, based on the value of an expression.
Syntax
Select Case selectExpr
[ Case condList
[ statements ] ]
...
[ Case Else
End Select
Elements
selectExpr
For example, if you specify 25 To 50, the corresponding group of statements is executed when selectExpr is any value between 25 and 50, inclusive. If you specify -4 to -1, the corresponding group of statements is executed when selectExpr is any value between -4 and -1, inclusive
For example, if you specify Is < 37, then the corresponding group of statements is executed when selectExpr is less than 37.
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, itfs executed only if selectExpr fails all conditions in all condList arguments.
Example See Also