I\'m sure this question has probably been answered before, so I apologize, but I wasn\'t able to find the proper search terms to find the answer.
Given the following
No. Both &&
and ||
are evaluated by short-circuit evaluation. This means that a && b
returns false if a
is false and a || b
returns true if a
is true and it will not evaluate b
in either of these cases.
If for some reason you do not want short-circuit evaluation you can use the bitwise operators &
and |
.