More generally, if op1, op2, …, opn are comparison operators, then the following have the same Boolean value:
x1 op1 x2 op2 x3 … xn-1 opn xn
x1 op1 x2 and x2 op2 x3 and … xn-1 opn xn
In the former case, each xi is only evaluated once. In the latter case, each will be evaluated twice except the first and last, unless short-circuit evaluation causes premature termination.