5. Boolean predicates

The core provides predicates for boolean values.

Table of Contents

5.1. true? ↑

Function

(true? value) → boolean

Returns true if value is the boolean true, otherwise false.

DUST
(true? true)
=
DUST
(true? false)
=
DUST
(true? a)
=
DUST
(true? (boolean a))
=

5.2. false? ↑

Function

(false? value) → boolean

Returns true if value is the boolean false, otherwise false.

DUST
(false? true)
=
DUST
(false? false)
=
DUST
(false? nil)
=
DUST
(false? (boolean null))
=
DUST
(false? (boolean nil))
=