A boolean value, either true or false.
true
false
The following operators are supported for booleans:
!bool // logical negation bool1 && bool2 // logical conjunction bool1 || bool2 // logical disjunction
Returns the class of this.
this
Returns a string representation of this.
This method is used to convert the values of string interpolation expressions to strings.
Returns this |> transform if this is non-null, and null otherwise.
this |> transform
null
This method is the complement of the ?? operator and the equivalent of an Option type's map and flatMap methods.
??
Option
map
flatMap
Tells if exactly one of this and other is true (exclusive or).
other
Facts:
!true.xor(true) true.xor(false) false.xor(true) !false.xor(false)
Tells if this implies other (logical consequence).
Note: This function does not short-circuit; other is always evaluated.
true.implies(true) !true.implies(false) false.implies(true) false.implies(false)
A boolean value, either
true
orfalse
.