Control Structures
These are examples of control structures. You may also be interested in:

 Conditional structures
 Exceptions
 Flow-control structures
 Loops

Task

List the conditional structures offered by a programming language. See 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.



/O> say "23 is greater than 42 is "
... 23 42 > not if [ say "not " ]
... say "true." cr
... 
23 is greater than 42 is not true.

Stack empty.

/O> say "23 is less than 42 is "
... 23 42 < not if [ say "not " ]
... say "true." cr
... 
23 is less than 42 is true.

Stack empty.

/O> 23 42 = iff
...   [ say "23 is equal to 42." ]
... else
...   [ say "23 is different to 42." ]
... cr
... 
23 is different to 42.

Stack empty.

/O> 23 42 != iff
...   [ say "23 is not equal to 42." ]
... else
...   [ say "23 is the same as  42." ]
... cr
... 
23 is not equal to 42.

Stack empty.