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

Leave a comment

Your email address will not be published. Required fields are marked *

9 − 6 =