mirror of
https://github.com/Alvin-Zilverstand/Tralalero_lang.git
synced 2026-03-06 11:17:06 +01:00
feat: Implement conditional statements
This commit is contained in:
15
README.md
15
README.md
@@ -56,4 +56,17 @@ Chimpanzini result x + y
|
||||
Matteeeo result // prints 15
|
||||
```
|
||||
|
||||
## Ciao!
|
||||
### `Tung Tung Tung <operand1> <operator> <operand2>`
|
||||
|
||||
This command executes a block of code if a condition is true. The supported operators are `==`, `!=`, `>`, `<`, `>=`, `<=`.
|
||||
|
||||
Example:
|
||||
```tralalero
|
||||
Biscottini x 10
|
||||
Tung Tung Tung x > 5
|
||||
{
|
||||
Matteeeo "x is greater than 5"
|
||||
}
|
||||
```
|
||||
|
||||
## Ciao!
|
||||
|
||||
Reference in New Issue
Block a user