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.

Syntax
END IF

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).

Example
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