$ 0 0 Factor out the code that handles AND and OR short-circuiting into a separate subroutine, for performance and legibility. (tags: short-circuit)