next up previous contents
Next: Intrinsic Logical Operations Up: Expressions and Assignment Previous: Concatenation

 

Relational Operators

The following relational operators deliver a logical result:

for example,

     i .GT. 12

is an expression delivering a .TRUE. or .FALSE. result.

These above operators are equivalent to the following:

for example,

     i > 12

Both sets of symbols may be used in a single statement.

Relational operators:

Consider,

    bool = i.GT.j
    IF (i.EQ.j) c = D
    WHERE (a.NE.0) a = 1/a

The example demonstrates,


next up previous contents
Next: Intrinsic Logical Operations Up: Expressions and Assignment Previous: Concatenation

Adam Marshall ©University of Liverpool, 1996
Fri Dec 6 15:03:35 GMT 1996
Not for commercial use.