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

Relational Operators

The following relational operators deliver a LOGICAL result when combined with numeric operands,

tabular26144

For example,

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

For more information, click here gif


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

Adam Marshall ©University of Liverpool, 1996
Fri Dec 6 18:56:08 GMT 1996
Not for commercial use.