Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference
A newer version of this document is available. Customers should click here to go to the newest version.
Visible to Intel only — GUID: GUID-A3245662-2BE0-42CE-86BB-7EB7B8F13CAF
Visible to Intel only — GUID: GUID-A3245662-2BE0-42CE-86BB-7EB7B8F13CAF
Logical Assignment Statements
For logical assignment statements, the variable must be of logical type and the expression can be of logical or numeric type.
If the expression is of numeric type, it is converted to integer if necessary, then the value is interpreted as .TRUE. or .FALSE. according to the setting of the compiler option fpscomp logicals.
Examples
The following examples demonstrate valid logical assignment statements:
PAGEND = .FALSE.
PRNTOK = LINE .LE. 132 .AND. .NOT. PAGEND
ABIG = A.GT.B .AND. A.GT.C .AND. A.GT.D
LOGICAL_VAR = 123 ! Assigns .TRUE. to LOGICAL_VAR