This article is from the FAQ, by with numerous contributions by others.
Boolean expressions are implemented as short-circuit. That is, in
B1 or B2
B2 is not evaluated if B1 is true, and
B1 and B2
B2 is not evaluated if B1 is false.
 
Continue to: