# Boolean

`true`

; `false`

. Boolean (logical) operators (*and*,

*or*,

*not*) take Boolean inputs and yields a Boolean value. Comparison operators on other types (numbers, strings yields a Boolean value.

### Block Editor

### Functions that return a Boolean

`point (1, 2)`

and stores this in the Boolean variable named `on`

. Then the code clears the screen if `on`

is `true`

:### Boolean operators

### Conjunction: `A and B`

`A and B`

evaluates to `true`

if-and-only-if both A and B are true:`false and false`

=`false`

`false and true`

=`false`

`true and false`

=`false`

`true and true`

=`true`

### Disjunction: `A or B`

`A or B`

evaluates to `true`

if-and-only-if either A is true or B is true:`false or false`

=`false`

`false or true`

=`true`

`true or false`

=`true`

`true or true`

=`true`

### Negation: `not A`

`not A`

evaluates to the opposite (negation) of A:`not false`

=`true`

`not true`

=`false`

### Example

`3 , 3`

, if LEDs `1 , 1`

and `2 , 2`

are both on:### Comparisons of numbers and strings

`x < 5`

in the code below:`equals`

function.