Bool

Boolean type and operations.

While boolean operators _ and and or are short-circuiting, avoiding computation of the right argument when possible, the functions logand(, ) and logor(, _) are strict and will always evaluate both of their arguments.

Bool

type Bool = Prim.Types.Bool

Booleans with constants true and false.

toText

func toText(x : Bool) : Text

Conversion.

logand

func logand(x : Bool, y : Bool) : Bool

Returns x and y.

logor

func logor(x : Bool, y : Bool) : Bool

Returns x or y.

logxor

func logxor(x : Bool, y : Bool) : Bool

Returns exclusive or of x and y, x != y.

lognot

func lognot(x : Bool) : Bool

Returns not x.

equal

func equal(x : Bool, y : Bool) : Bool

Returns x == y.

notEqual

func notEqual(x : Bool, y : Bool) : Bool

Returns x != y.

compare

func compare(x : Bool, y : Bool) : {#less; #equal; #greater}

Returns the order of x and y, where false < true.