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

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


Vocabulary
kernel

Inputs
obja generalized boolean


Outputs
?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