| Applying science to business management |
  
Boolean Operators
There are three Boolean operators And, Or, and Not.
These operators are usually used to combine expressions involving
the comparison operators described in the preceding section. For
example, the following expression returns true if the
number represented by x is between 5 and 10.
x>=5&&x<=10
Like the comparison operators, every Boolean operator returns
a Boolean value (true or false).
Logical And x&&y
Returns true only if both x
and y are true.
Logical Or x||y
Returns true if either x
or y is true.
Logical Not !x
Returns true if x is false.
Otherwise, Not returns true.
See Also
Conditional Evaluation
Logical Look-Ahead
|