next up previous contents
Next: Operator Precedence Up: Expressions and Assignment Previous: Relational Operators

Intrinsic Logical Operations

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

for example,

   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))

For more information, click here gif


next up previous contents
Next: Operator Precedence Up: Expressions and Assignment Previous: Relational Operators

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