-
-
Notifications
You must be signed in to change notification settings - Fork 8
Or Operator
IsaacShelton edited this page Mar 21, 2022
·
1 revision
The or
operator is used for performing the logical-or operation on two boolean-like types.
true or false
The or
operator does the same thing as the ||
operator, except that it has lower precedence. Because or
has lower precedence, it will be evaluated after ||
/&&
expressions.
a or b && c
is the same as
a or (b and c)
If the first value is true
, then the second value will not be evaluated.