# Logic

[if](/reference/logic/if)

```blocks
if(true) {
}
```

[Boolean](/reference/types/boolean) values: *true*; *false*

```blocks
true
false
```

Boolean binary operators: *and* (conjunction); *or* (disjunction)

```blocks
true && false;
true || false;
```

Boolean negation operator

```blocks
!true
```

Comparison operators (=, !=, <, >, <=, >=)

```blocks
0 == 0;
1 !- 0;
0 < 1;
1 > 0;
0 <= 1;
1 >= 0;
```
