cond && cond op cond
op
can be &&
or ||
Qn- For short circuit (&&
) operator if the first cond is false then right part (whole) is not evaluated or just the second cond after &&
is not evaluated
Also why the result of following two expressions different?
(2 > 3 && 5 < 2 || 3 > 2)
=> True
(2 > 3 && 5 < 2 | 3 > 2)
=> False
Can't we use short circuit operator and standard operators in a single expression...?