next up previous contents
Next: Nested and Named IF Up: Control Constructs Previous: IF ... THEN ....

 

Visualisation of IF ... THEN .. ELSEIF Construct

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,

tex2html_wrap26595


next up previous contents
Next: Nested and Named IF Up: Control Constructs Previous: IF ... THEN ....

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