The logical AND and OR operators (&&and||respectively) are early out operators. That is, evaluation of the expression is aborted as soon as the result is known.For the

&&it is possible to abort the evaluation of the right hand side (RHS) of the expression if the left hand side (LHS) of the expression evaluates toFALSE. This is because it is impossible for the RHS to cause the expression to beTRUEif the LHS isFALSE.e.g. A == B && G == H if A != B then the result isFALSEregardless of the sub-expression G == Hexample generated codeFor the

||it is possible to abort the evaluation of the right hand side (RHS) of the expression if the left hand side (LHS) of the expression evaluates toTRUE. This is because it is impossible for the RHS to cause the expression to beFALSEif the LHS isTRUE.e.g. A == B || G == H if A == B then the result isTRUEregardless of the sub-expression G == Hexample generated code