4.3.Conditional #

Conditional Operator

The && and || operators perform Conditional-AND and Conditional-OR operations on two boolean expressions. These operators exhibit “short-circuiting” behavior, which means that the second operand is evaluated only if needed.

Operator Description
&& Conditional-AND
|| Conditional-OR
Suggest Edit