Next: Intrinsic Character Operations
Up: Expressions and Assignment
Previous: Relational Operators
A LOGICAL or boolean expression returns a .TRUE. / .FALSE. result. The
following are valid with LOGICAL operands,
- .NOT. -- .TRUE. if operand is .FALSE..
- .AND. -- .TRUE. if both operands are .TRUE.;
- .OR. -- .TRUE. if at least one operand is .TRUE.;
- .EQV. -- .TRUE. if both operands are the same;
- .NEQV. -- .TRUE. if both operands are different.
For example, if T is .TRUE. and F is .FALSE.
- .NOT. T is .FALSE., .NOT. F is .TRUE..
- T .AND. F is .FALSE., T .AND. T is .TRUE..
- T .OR. F is .TRUE., F .OR. F is .FALSE..
- T .EQV. F is .FALSE., F .EQV. F is .TRUE..
- T .NEQV. F is .TRUE., F .NEQV. F is .FALSE..
For more information, click here
Next: Intrinsic Character Operations
Up: Expressions and Assignment
Previous: Relational Operators
©University of Liverpool, 1997
Wed May 28 23:37:18 BST 1997Not for commercial use.