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