slovo/tests/if.surface.lower
2026-05-22 08:38:43 +02:00

29 lines
445 B
Plaintext

program main
fn choose(value: i32) -> i32
if
binary <
var value
int 3
int 10
int 20
fn main() -> i32
call choose
int 2
test "if chooses then"
binary =
call choose
int 2
int 10
test "if chooses else"
binary =
call choose
int 4
int 20
test "if returns bool"
if
binary <
int 1
int 2
bool true
bool false