-
Notifications
You must be signed in to change notification settings - Fork 35
Boolean
MitalAshok edited this page Nov 6, 2016
·
2 revisions
Returns true if both operands are true.
this::and(right)
-
this
: (boolean) Left boolean operand. -
right
: (boolean) Right boolean operand.
true::and(true) // true
true::and(false) // false
false::and(true) // false
false::and(false) // false
Returns the negation of the boolean.
this::not()
-
this
(boolean) The boolean to negate.
true::not() // false
false::not() // true
Returns true if either of the operands is true.
this::or(right)
-
this
: (boolean) Left boolean operand. -
right
: (boolean) Right boolean operand.
true::or(true) // true
true::or(false) // true
false::or(true) // true
false::or(false) // false
Returns true if one and only one of the conditions is true.
this::xor(right)
-
this
: (boolean) Left boolean operand. -
right
: (boolean) Right boolean operand.
true::xor(true) // false
true::xor(false) // true
false::xor(true) // true
false::xor(false) // false