Name

boolean

Usage

builtin-function

Syntax

(boolean a)

Description

Returns true if a is true, otherwise false.

user 1 > (boolean 0)
it: true
user 2 > (boolean 1)
it: true
user 3 > (boolean null)
it: false
user 4 > (boolean "")
it: false
user 5 > (boolean "aaaa")
it: true
user 6 > (boolean (vector))
it: false
user 7 > (boolean (vector 1 2 3))
it: true