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.

toText

Conversion.

func toText(x : Bool) : Text

logand

Returns x and y.

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

logor

Returns x or y.

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

logxor

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

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

lognot

Returns not x.

func lognot(x : Bool) : Bool

equal

Returns x == y.

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

notEqual

Returns x != y.

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

compare

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

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