← index

Booleansealed

inherits Object

The two truth values, written as the literals true and false. Control flow in Quoin is messaging a Boolean: if:/else: take blocks and run the matching one, so there is no statement-level if.

(1 < 2).if:{ 'yes' } else:{ 'no' }     "* -> yes

Only true and false are Booleans -- nil is not a Boolean and does not answer if:.

Instance methods

==:

Whether the argument is the same truth value; a non-Boolean is simply unequal, never an error.

true == false     "* -> false

native

s

'true' or 'false'.

false.s     "* -> false

native