e0/examples/conditions.e0

11 lines
127 B
Text

fn main() -> int {
let x = 5;
if x < 3 {
return 3;
} else if x > 10 {
return 10;
} else {
return x;
}
}