Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jackparsonss committed Jul 3, 2024
1 parent 896c314 commit 16abd81
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,17 @@ fn main(): i32 {
let a: bool = 5 != 5 && 5 == 5;
}
```

#### Conditionals
Just like `if`/`else` statements in most languages
```
let x: i32 = 5;
if(x == 4){
println(0);
} else if(x == 5) {
println(10);
} else {
println(x);
}
```
Conditions **must** be booleans

0 comments on commit 16abd81

Please sign in to comment.