compile/bool

Syntax: (bool VALUE)

Behaviour: Expands to (truth VALUE): the truthiness of VALUE under Python’s rules, as True or False.

Examples:

>>> (bool 0)
False
>>> (bool "x")
True
>>> (bool #[])
False

See also: ?, which tests and branches in one form.

Also: type bool.