41 - Boolean
bool
Keyword and the possible values are constants true
and false
.
-
Operators are:
!
(logical negation)&&
(logical conjunction “and”)||
(logical disjunction, “or”)==
(equality)!=
(inequality).
-
The operators
||
and&&
apply the common short-circuiting rules. This means that in the expressionf(x) || g(y)
, iff(x)
evaluates to true,g(y)
will not be evaluated even if it may have side-effects.
bool
Keyword- True or False
- Operators:
!
,==
,!=
,&&
,||
- Short-circuit:
||
,&&
- Security: Control Flow & Checks,
||
vs.&&