next up previous contents
Next: Example Of SELECT CASE Up: Control Flow Previous: Scope of DO Variables

SELECT CASE Construct

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

The syntax is as follows,

 
 [  tex2html_wrap_inline43037  name  tex2html_wrap_inline43039 : ] SELECT CASE ( tex2html_wrap_inline43037  case-expr  tex2html_wrap_inline43039 )

[ CASE ( tex2html_wrap_inline43037  case-selector tex2html_wrap_inline43039 ) [ tex2html_wrap_inline43037  name tex2html_wrap_inline43039 ]

tex2html_wrap_inline43037  exec-stmts tex2html_wrap_inline43039 ] ...

[ CASE DEFAULT [ tex2html_wrap_inline43037  name tex2html_wrap_inline43039 ]

tex2html_wrap_inline43037  exec-stmts tex2html_wrap_inline43039 ]

END SELECT [ tex2html_wrap_inline43037  name tex2html_wrap_inline43039 ]

Note,

For more information, click here gif


next up previous contents
Next: Example Of SELECT CASE Up: Control Flow Previous: Scope of DO Variables

Adam Marshall ©University of Liverpool, 1996
Fri Dec 6 18:56:08 GMT 1996
Not for commercial use.