Clarity theorytheory 0/50 · 0%
Data Types · easy

5. Booleans and Logic

True, false, and logical operators.

Clarity provides a `bool` type with `true` and `false`. Logical operators like `and`, `or`, and `not` are used to combine conditions.

clarity
(and true false) ;; false
(or true false)  ;; true
(not true)       ;; false

Check your understanding

  1. 1. What is the result of (or false true)?