Conditional structures: Difference between revisions

Content added Content deleted
(add description and justification for other conditionals)
m (Use a proper mediawiki wikipedia link, remove over enthusiastic whitespace, reformatted slightly to match preexisting)
Line 4: Line 4:


;Task:
;Task:
List the   ''conditional structures''   offered by a programming language. See https://en.wikipedia.org/wiki/Conditional_(computer_programming) for a description.
List the ''conditional structures'' offered by a programming language. See [[wp:Conditional_(computer_programming)|Wikipedia: conditionals]] for descriptions.


Common conditional structures are     '''if-then-else'''     and     '''switch'''. Less common structures are ''arithmetic if'', ''ternary operator'' and ''Hash-based conditionals''.
Common conditional structures include '''if-then-else''' and '''switch'''.
''Arithmetic if'' allows tight control over computed gotos, which optimizers have a hard time to figure out.


Less common are '''arithmetic if''', '''ternary operator''' and '''Hash-based conditionals'''.
<br><br>

'''''Arithmetic if''' allows tight control over computed gotos, which optimizers have a hard time to figure out.''

<br>


=={{header|11l}}==
=={{header|11l}}==