not ( obj -- ? )
Factor handbook » The language » Booleans

Prev:>boolean ( obj -- ? )
Next:and ( obj1 obj2 -- obj2/f )


Vocabulary
kernel

Inputs
obja generalized boolean


Outputs
?a boolean


Word description
For f outputs t and for anything else outputs f.

Notes
This word implements boolean not, so applying it to integers will not yield useful results (all integers have a true value). Bitwise not is the bitnot word.

Definition

: not ( obj -- ? ) [ f ] [ t ] if ; inline