mirror of
https://github.com/Alvin-Zilverstand/Tralalero_lang.git
synced 2026-03-06 11:17:06 +01:00
feat: Implement else statements
This commit is contained in:
14
README.md
14
README.md
@@ -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!
|
||||
Reference in New Issue
Block a user