> For the complete documentation index, see [llms.txt](https://glados.guillaume-hein.fr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://glados.guillaume-hein.fr/features/conditions.md).

# Conditions

## Create `if / else` conditions

### Syntaxe

```rust
if (<condition>) {
    <block>
} else {
    <block>
}
```

### Condition:

* Anything with logical operator used for variables comparison

```rust
"!=" | "==" | ">" | "<" | ">=" | "<="| "&&" | "||"
```

### Examples:

```rust
if (i <= 10) {
    <block>
} else {
    <block>
}

if (a % 2 != 0 && a % 3 != 0) {
    <block>
} else {
    <block>
}
```
