RosettaCodeData/Task/Conditional-structures/Astro/conditional-structures.astro
2023-07-01 13:44:08 -04:00

16 lines
166 B
Text

if x == 0:
foo()
elif x == 1:
bar()
elif x == 2:
baz()
else:
qux()
match x:
0 => foo()
1 => bar()
2 => baz()
_ => qux()
(a) ? b : c