Next: Nested and Named IF
Up: Control Constructs
Previous: IF ... THEN ....
Consider the IF ... THEN ... ELSEIF construct
IF (I > 17) THEN
Print*, "I > 17"
ELSEIF (I == 17)
Print*, "I == 17"
ELSE
Print*, "I < 17"
END IF
this maps onto the following control flow structure,
Next: Nested and Named IF
Up: Control Constructs
Previous: IF ... THEN ....
©University of Liverpool, 1997
Wed May 28 23:37:18 BST 1997Not for commercial use.