Skip to content

Booleans

Amitai Erfanian edited this page Oct 22, 2020 · 10 revisions

And

(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

(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

(not [boolean]) -> boolean

Negates a boolean value.

not #false)
#true


Clone this wiki locally