VMS Help FORTRAN, Error Messages, Compilation Errors, INVCONSTR *Conan The Librarian (sorry for the slow response - running on an old VAX) |
SEVERITY: F MESSAGE TEXT: Invalid control structure using ELSE IF, ELSE, or END IF EXPLANATION: The order of ELSE IF, ELSE, or END IF statements is incorrect. ELSE IF, ELSE, and END IF statements cannot stand alone. ELSE IF and ELSE must be preceded by either a block IF statement or an ELSE IF statement. END IF must be preceded by either a block IF, ELSE IF, or ELSE statement. Examples: 1. DO 10 I=1,10 J = J + I ELSE IF (J .LE. K) THEN Error: ELSE IF preceded by a DO statement. 2. IF (J .LT. K) THEN J = I + J ELSE J = I - J ELSE IF (J .EQ. K) THEN END IF Error: ELSE IF preceded by an ELSE statement.
|