Conditional structures: Difference between revisions

m (→‎Match statement: fix small errors)
Line 509:
 
=={{header|Astro}}==
<lang python>if x == 0: foo()
elif x == 21: bar()
foo()
elif x == 12: baz()
else: qux()
bar()
elif x == 2:
baz()
else:
qux()
 
x
| 0 -=> foo()
| 1 -=> bar()
| 2 -=> baz()
| _ -=> qux()</lang>
 
(a) ? b : c
</lang>
 
=={{header|AutoHotkey}}==
Anonymous user