Closed AjaniBilby closed 3 years ago
Test case
import "print.uv";
fn test(a: int, b: int) {
if (a > b) {
println("Greater");
} elif (a < b) {
println("Lesser");
} else {
println("Equal");
}
return;
}
fn main(): int {
test(1, 3); // Lesser
test(2, 2); // Equal
test(3, 1); // Greater
return 0;
}
Added else if statements which can be infinitly chained