1
1
mirror of https://github.com/ProvableHQ/leo.git synced 2024-12-29 05:02:52 +03:00
leo/compiler/tests/statements/conditional/chain.leo
2020-08-16 17:20:47 -07:00

13 lines
188 B
Plaintext

function main(a: u32, b: u32) {
let mut c = 0u32;
if a == 1 {
c = 1;
} else if a == 2 {
c = 2;
} else {
c = 3;
}
console.assert(c == b);
}