P
Paul Lalli
There's really only a couple things you have to make sure you
understand, for this to be clear: The operators (and, or, &&,
||) all use short circuit evaluation. As soon as it's possible
to determine the results of the entire expression, the operator
returns. And they always return the last value evaluated. For
|| or or to be true, only one of the chain of values need be
true. For || or or to be false, they all must be false. The
opposite is true for && or and: to be true, they must all be
true. To be false, they must all be false.
ACK! That should read:
The opposite is true for && or and: to be true, they must all be
true. To be false, only one need be false.
Sorry about that!
Paul Lalli