-
Notifications
You must be signed in to change notification settings - Fork 0
Booleans
Amitai Erfanian edited this page Oct 22, 2020
·
10 revisions
(and expression expression expression ...) -> boolean
Evaluates to #true if all the expressions are #true. If any expression is #false, the and expression evaluates to #false (and the expressions to the right of that expression are not evaluated.) If any of the expressions evaluate to a value other than #true or #false, and reports an error.
(or expression expression expression ...) -> boolean
Evaluates to #true as soon as one of the expressions is #true (and the expressions to the right of that expression are not evaluated.) If all of the expressions are #false, the or expression evaluates to #false. If any of the expressions evaluate to a value other than #true or #false, or reports an error.
(not [boolean]) -> boolean
Negates a boolean value.
not #false)
#true