Update README

This commit is contained in:
2025-10-30 12:14:34 +00:00
parent cabfcde970
commit 6a2c1ac3ae

View File

@@ -38,26 +38,6 @@ main func {
} }
``` ```
Use `if` and `while` for control flow.
Note: Equality operators like `==`, `!=`, etc, etc aren't supported yet. This is a new project, after all.
```
main func {
if (true) {
println("It's true!")
}
}
```
```
main func {
while (true) {
println("To infinity and beyond!")
}
}
```
Set variables with `=`. Set variables with `=`.
``` ```
@@ -75,6 +55,29 @@ main func {
} }
``` ```
Use `if` and `while` for control flow.
You can use the operators `==`, `!=`, `>`, `<`, `>=`, and `<=` to process data.
```
main func {
x = 5
if (x == 5) {
println("It's true!")
}
}
```
```
main func {
x = 0
while (x < 1000) {
x += 1
println(x)
}
}
```
Note: If you'd like you can do this: Note: If you'd like you can do this:
``` ```