END IF statement
Standard: F77 F90 F95 F2003
  Example Program
<Syntax>
END IF [ if-construct-name ]

The blank between END and IF is optional. The if-construct-name shall be specified if and only if the IF construct is named.
<Semantics>
The END IF statement marks the end of an IF construct..

Executing an END IF statement has no effect.

In Fortran 77 and Fortran 90 it was permissible to branch to an END IF statement from outside the IF construct. Because this was confusing, it was deleted from Fortran 95 and remains deleted in Fortran 2003: it is only permissible to branch to an END IF statement from within the IF construct
<Related>
ELSE statement, ELSE IF statement, IF construct, IF statement, IF THEN statement