Intel fortran-80 manual ELSE IF Statement Category: Executable, Block IF

Models: fortran-80

1 130
Download 130 pages 742 b
Page 95
Image 95
ELSE IF Statement

FORTRAN-80

FORTRAN-80 Statement Summary

ELSE IF Statement

Category: Executable, Block IF

Text Reference: 'Section 4.1.8

Format

 

Function

 

 

 

 

 

 

 

ELSE IF (exp) THEN

 

Continue execution if

expression

 

 

 

 

'exp' is TRUE

 

 

 

 

 

 

 

 

 

 

END Statement

 

Category: Executable

 

 

 

Text Reference: 4.3.1

 

 

 

 

 

 

 

 

 

Format

 

 

Function

 

 

 

 

 

 

 

END

 

 

Terminate main program;

return

 

 

 

 

from subprogram; mark end of pro-

 

 

 

 

gram unit.

 

 

 

 

 

 

 

 

 

END IF Statement

 

Category: Executable, block IF

 

 

 

Text Reference: Section 4.1.10

 

 

 

 

 

 

 

 

Format

 

 

 

Function

 

 

 

 

 

ENDIF

 

 

 

Mark end of IF block; continue

 

 

 

 

execution.

 

 

 

 

 

 

 

ENDFILE Statement

Category: Executable

Text Reference: Section 6.2.5

Formats

 

Function

 

 

 

ENDFILE unit

 

Write end-of-file record on file

ENDFILE (arg-list)

 

connected to 'unit.'

 

 

 

Notes:

 

'unit' is unit specifier

 

'arg-list' is following argument list:

 

[UNIT =] unit

unit specifier

lOSTA T = stname

110 status specifier

ERR = stl

error specifier

A-5

Page 95
Image 95
Intel fortran-80 manual ELSE IF Statement Category: Executable, Block IF