next up previous contents
Next: Intrinsic Character Operations Up: Expressions and Assignment Previous: Relational Operators

 

Intrinsic Logical Operations

A LOGICAL or boolean expression returns a .TRUE. / .FALSE. result. The following operators are valid with LOGICAL operands,

The following are examples of logical expressions,

    REAL :: a, b, x, y
    LOGICAL :: l1, l2
     ...
    l1 = (.NOT.(x.EQ.y.AND.a.EQ.b))
    l2 = (l1.EQV.((x.GT.a.OR.y.LT.b).NEQV.a.EQ.b))

Return to corresponding overview page gif


next up previous contents
Next: Intrinsic Character Operations Up: Expressions and Assignment Previous: Relational Operators

©University of Liverpool, 1997
Wed May 28 20:20:27 BST 1997
Not for commercial use.