>boolean ( obj -- ? )
Factor handbook > The language > Booleans

Prev:boolean
Next:not ( obj -- ? )


Vocabulary
kernel

Inputs and outputs
obja generalized boolean
?a boolean


Word description
Convert a generalized boolean into a boolean. That is, f retains its value, whereas anything else becomes t.

Definition

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