Factor Documentation
|
Home
|
Glossary
|
Search
factorcode.org
>boolean ( obj -- ? )
Factor documentation
>
Factor handbook
>
The language
>
Booleans
Prev:
boolean
Next:
not ( obj -- ? )
Vocabulary
kernel
Inputs and outputs
obj
a 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
IN:
kernel
:
>boolean
( obj -- ? )
[
t
]
[
f
]
if
;
inline