Conditional structures: Difference between revisions

Content added Content deleted
(Added 11l)
Line 8: Line 8:
Common conditional structures are     '''if-then-else'''     and     '''switch'''.
Common conditional structures are     '''if-then-else'''     and     '''switch'''.
<br><br>
<br><br>

=={{header|11l}}==
===if-else===
<lang 11l>I x == 0
foo()
E I x == 1
bar()
E
baz()</lang>

===switch===
<lang 11l>S x
0
foo()
1
bar()
E
baz()</lang>


=={{header|360 Assembly}}==
=={{header|360 Assembly}}==