Answers whether the Boolean has the same truth value as another.
Booleanthe Boolean to compare againstReturns true when both are equal.
The methods on true and false: logic, comparison and printing.
The two truth values, true and false, and the logic that combines them.
Taught on: Method calls and Conditions.
namespace Boolean for Booleanon Boolean
Answers whether the Boolean has the same truth value as another.
Booleanthe Boolean to compare againstReturns true when both are equal.
on Boolean
Orders the Boolean against another one, with false before true.
Booleanthe Boolean to order againstReturns Ordering#Less, Ordering#Equal or Ordering#Greater.
on Boolean
Answers the Boolean as a String: "true" or "false".
on Boolean · provided by Equatable
Answers whether the values differ.
Booleanthe value to compare withReturns true when the values differ.
on Boolean
Answers the opposite truth value: false for true, and true for false.
on Boolean
Answers the logical conjunction: true only when both Booleans are true.
Both sides are evaluated. A call reads its Argument before the Method runs, so a false receiver does not stop the other side. Where the other side is expensive, write define { as other if flag as false otherwise }.
Booleanthe other Booleanon Boolean
Answers the logical disjunction: true when either Boolean is true.
Both sides are evaluated, as they are for and. Where the other side is expensive, write define { as true if flag as other otherwise }.
Booleanthe other Booleanon Boolean
Answers the exclusive disjunction: true when exactly one Boolean is true.
Booleanthe other Booleanon Boolean · provided by Comparable
Answers whether the value is strictly below another.
Booleanthe value to compare withReturns true when the value is below the given one.
on Boolean · provided by Comparable
Answers whether the value is below another, or equal to it.
Booleanthe value to compare withReturns true when the value is below the given one or equal to it.
on Boolean · provided by Comparable
Answers whether the value is strictly above another.
Booleanthe value to compare withReturns true when the value is above the given one.
on Boolean · provided by Comparable
Answers whether the value is above another, or equal to it.
Booleanthe value to compare withReturns true when the value is above the given one or equal to it.