next up previous contents
Next: SELECT CASE Construct II Up: Control Constructs Previous: SELECT CASE Construct I

 

Visualisation of SELECT CASE

Consider the SELECT CASE construct

      SELECT CASE (I)
       CASE(1);   Print*, "I==1"
       CASE(2:9); Print*, "I>=2 and I<=9"
       CASE(10);  Print*, "I>=10"
       CASE DEFAULT; Print*, "I<=0"
      END SELECT CASE

this maps onto the following control flow structure,

tex2html_wrap26795


next up previous contents
Next: SELECT CASE Construct II Up: Control Constructs Previous: SELECT CASE Construct I

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