feat: Implement else statements

This commit is contained in:
Alvin
2025-09-10 12:55:26 +02:00
parent 936fa22257
commit 1cf708d0fd
3 changed files with 59 additions and 16 deletions

View File

@@ -60,13 +60,19 @@ Matteeeo result // prints 15
This command executes a block of code if a condition is true. The supported operators are `==`, `!=`, `>`, `<`, `>=`, `<=`.
This can be followed by a `Ballerina Cappuccina` block to execute code if the condition is false.
Example:
```tralalero
Biscottini x 10
Tung Tung Tung x > 5
Biscottini x 5
Tung Tung Tung x > 10
{
Matteeeo "x is greater than 5"
Matteeeo "x is greater than 10"
}
Ballerina Cappuccina
{
Matteeeo "x is not greater than 10"
}
```
## Ciao!
## Ciao!