Conditional structures: Difference between revisions
Content added Content deleted
m (→Match statement: fix small errors) |
|||
Line 509: | Line 509: | ||
=={{header|Astro}}== |
=={{header|Astro}}== |
||
<lang python>if x == 0: |
<lang python>if x == 0: foo() |
||
⚫ | |||
foo() |
|||
elif x == |
elif x == 2: baz() |
||
⚫ | |||
bar() |
|||
⚫ | |||
baz() |
|||
⚫ | |||
qux() |
|||
x |
x |
||
| 0 |
| 0 => foo() |
||
| 1 |
| 1 => bar() |
||
| 2 |
| 2 => baz() |
||
| _ |
| _ => qux() |
||
(a) ? b : c |
|||
</lang> |
|||
=={{header|AutoHotkey}}== |
=={{header|AutoHotkey}}== |