next up previous contents
Next: Mixing Objects of Different Up: Control Constructs Previous: Visualisation of SELECT CASE

 

SELECT CASE Construct II

This is useful if one of several paths must be chosen based on the value of a single expression.

The syntax is as follows,

 
 [ < name >: ] SELECT CASE (< case-expr >)

[ CASE (< case-selector >) [ < name > ]

< exec-stmts > ] ...

[ CASE DEFAULT [ < name > ]

< exec-stmts > ]

END SELECT [ < name > ]

Note,

For more information, click here gif


next up previous contents
Next: Mixing Objects of Different Up: Control Constructs Previous: Visualisation of SELECT CASE

©University of Liverpool, 1997
Wed May 28 23:37:18 BST 1997
Not for commercial use.