FORTRAN 77 Language Reference

CONTINUE

The CONTINUE statement is a "do-nothing" statement.

[label] CONTINUE

Parameter 

Description 

label

Executable statement number 

Description

The CONTINUE statement is often used as a place to hang a statement label, usually it is the end of a DO loop.

The CONTINUE statement is used primarily as a convenient point for placing a statement label, particularly as the terminal statement in a DO loop. Execution of a CONTINUE statement has no effect.

If the CONTINUE statement is used as the terminal statement of a DO loop, the next statement executed depends on the DO loop exit condition.

Example


       DIMENSION U(100) 
       S = 0.0 
       DO 1 J = 1, 100 
              S = S + U(J) 
              IF ( S .GE. 1000000 ) GO TO 2 
1      CONTINUE 
       STOP 
2      CONTINUE 
       . . .