FORTRAN 77 Language Reference

GO TO (Unconditional)

The unconditional GO TO statement transfers control to a specified statement.

GO TO s

Parameter 

Description 

s

Statement label of an executable statement

Description

Execution of the GO TO statement transfers control to the statement labeled s.

Restrictions

s must be in the same program unit as the GO TO statement.

The statement control jumps to must be executable, not a DATA, ENTRY, FORMAT, or INCLUDE statement.

Control cannot jump into a DO, IF, ELSE IF, or ELSE block from outside the block.

Example


       A = 100.0 
       B = 0.01 
       GO TO 90 
       ... 
90   CONTINUE