Next: SELECT CASE Construct II
Up: Control Constructs
Previous: SELECT CASE Construct I
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,
Next: SELECT CASE Construct II
Up: Control Constructs
Previous: SELECT CASE Construct I
©University of Liverpool, 1997
Wed May 28 23:37:18 BST 1997Not for commercial use.