Conditional structures: Difference between revisions
Content deleted Content added
Add DM language example |
No edit summary |
||
Line 506: | Line 506: | ||
return "odd" |
return "odd" |
||
end if</lang> |
end if</lang> |
||
=={{header|Astro}}== |
|||
<lang python>if x == 0: |
|||
foo() |
|||
elif x == 1: |
|||
bar() |
|||
elif x == 2: |
|||
baz() |
|||
else: |
|||
qux() |
|||
x |
|||
| 0 -> foo() |
|||
| 1 -> bar() |
|||
| 2 -> baz() |
|||
| _ -> qux()</lang> |
|||
=={{header|AutoHotkey}}== |
=={{header|AutoHotkey}}== |
||