next up previous contents index
Next: The At Operator Up: Binary Operators Previous: Relational Operators

Logical Operators

   

The logical operators--And (&) and Or (|)--can be applied to arithmetic operands. And returns 1 if both operands are non-zero, and 0 if either operand is zero. Or returns 1 if either operand is non-zero, and 0 if both operands are zero. The precedence of and is higher than that of or.



Kay Nettle
Fri Feb 21 21:14:29 CST 1997