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.



 
! IF-ELSEIF-ELSE-END IF
! SELECT-CASE
! ON GOTO, ON GOSUB
 
IF expr_booleana THEN
   sentencia(s)
END IF
 
 
IF expr_booleana1 THEN
   sentencia(s)
ELSEIF expr_booleana2 THEN
   sentencia(s)
ELSEIF expr_booleana3 THEN
   sentencia(s)
ELSE
   sentencia(s)
END IF
 
 
SELECT CASE expr_booleana
CASE 1
     sentencia(s)
CASE 2
     sentencia(s)
CASE ELSE
     sentencia(s)
END SELECT
 
 
ON expresión GOTO label1, label2 ELSE label3
 
 
ON expresión Gosub label1, label2 ELSE label3
 