END IF - Fortran

The END IF statement has no operational function. It serves as a point of reference like a CONTINUE statement in a DO loop.


Rules for Use

  • Every block IF statement requires an END IF statement to close that IF level.
  • The IF level of an END IF statement must be greater than zero (there must be a preceding corresponding IF block statement).

See the example given with the description of the ELSE statement in “ELSE”

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

Fortran Topics