Skip to content
MitalAshok edited this page Nov 6, 2016 · 2 revisions

Methods Defined Here

Returns true if both operands are true.

Parameters

this::and(right)
  • this: (boolean) Left boolean operand.
  • right: (boolean) Right boolean operand.

Basic Usage

true::and(true) // true
true::and(false) // false
false::and(true) // false
false::and(false) // false

Returns the negation of the boolean.

Parameters

this::not()
  • this (boolean) The boolean to negate.

Basic Usage

true::not() // false
false::not() // true

Returns true if either of the operands is true.

Parameters

this::or(right)
  • this: (boolean) Left boolean operand.
  • right: (boolean) Right boolean operand.

Basic Usage

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.

Parameters

this::xor(right)
  • this: (boolean) Left boolean operand.
  • right: (boolean) Right boolean operand.

Basic Usage

true::xor(true) // false
true::xor(false) // true
false::xor(true) // true
false::xor(false) // false