4 Program Control
The false object is the constant #f
. There is a canonical true object, #t
, which can be used for clarity of code. #t
and #f
are instances of the class <boolean>
.
Because all values besides #f
count as true, the term "true or false" is not equivalent to "#t
or #f
".
The special operator ~
is used for logical negation. If its operand is true, it returns #f
. If its operand is #f
, it returns #t
.
Generated with Harlequin WebMaker