Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jackparsonss committed Jul 5, 2024
1 parent 43577e7 commit d02555e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,15 @@ if(x == 4){
}
```
Conditions **must** be booleans

#### Loops
Similar to c-style for loops, they are composed of 4 parts
- Variable declaration
- Loop condition
- Variable assignment
- Body
```
for(let i: i32 = 0; i < 5; i = i + 1){
println(i);
}
```

0 comments on commit d02555e

Please sign in to comment.