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,