next up previous contents index
Next: Iterative Control Flow Up: Compound Statements Previous: Unconditional Control Flow

Conditional Control Flow

     

The if statement evaluates its conditional expression and executes the then statements if the conditional is true. If the conditional evaluates to false, the optional elsif clause (of which there may be any number) is tested and executed. If none of these clauses evaluates to true, the optional else statements are executed.



Kay Nettle
Fri Feb 21 21:14:29 CST 1997