ethos/tests/if.ethlang
sfja d2a49f3be0
All checks were successful
Check / Explore-Gitea-Actions (push) Successful in 17s
add while stmt
2026-03-17 12:44:35 +01:00

26 lines
232 B
Plaintext

// expect: 2
// expect: 5
fn main()
{
let a = 1;
if true {
a = 2;
}
if false {
a = 3;
}
print_int(a);
if false {
a = 4;
} else {
a = 5;
}
print_int(a);
}