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