RosettaCodeData/Task/Conditional-structures/00-TASK.txt

16 lines
532 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
{{Control Structures}}
[[Category:Simple]]
2024-04-19 16:56:29 -07:00
[[Category:Flow control]]
2023-07-01 11:58:00 -04:00
;Task:
List the ''conditional structures'' offered by a programming language. See [[wp:Conditional_(computer_programming)|Wikipedia: conditionals]] for descriptions.
Common conditional structures include '''if-then-else''' and '''switch'''.
Less common are '''arithmetic if''', '''ternary operator''' and '''Hash-based conditionals'''.
'''''Arithmetic if''' allows tight control over computed gotos, which optimizers have a hard time to figure out.''
<br>