FORTRAN Reference Manual

Syntax Summary
FORTRAN Reference Manual528615-001
B-6
FORTRAN Statements
Executes an unconditional transfer of control to the statement labeled label.
Executes a computed GO TO statement. Transfers control to the label whose position
in the list of labels corresponds to the value of exp.
Executes an assigned GO TO statement. Transfers control to the statement whose
label was assigned to ivar in a previously executed ASSIGN statement.
Executes an arithmetic IF statement. Transfers control to label1 if exp is less than
zero, to label2 if exp equals zero, to label3 if exp is greater than zero.
Executes a logical IF statement. If the logical expression exp is true, executes
statement. Otherwise, executes the next inline instruction.
Defines a block-IF statement. Defines one or more sequences of statements that are
conditionally executed based on the result of evaluating the exp expressions.
GO TO label
GO TO ( label [, label ]... ) [,] exp
GO TO ivar [ [,] ( label [, label ]... ) ]
IF ( exp ) label1, label2, label3
IF ( exp ) statement
IF ( exp ) THEN
if-block
[ ELSE IF ( exp ) THEN
if-block ]...
[ ELSE
if-block ]
END IF