[ < ] | [ > ] |  | [ << ] | [ Up ] | [ >> ] |  |  |  |  | [Top] | [Contents] | [Index] | [ ? ]

#### 8.1.7.3 if Statement

This statement has the following look:

    if boolean expression then
      statement

or with an alternative statement:

    if boolean expression then
      statement1
    else
      statement2

The ``if'` ... ``then'` statement consists of a boolean expression and a statement, which is conditionally executed if the evaluation of boolean expression yields true.

If ``if'` ... ``then'` ... ``else'` is concerned, statement1 is executed depending on boolean expression being true, otherwise statement2 is executed alternatively. Note: the statement before else must not finish with a semicolon.

This document was generated by Frank Heckenbach on May, 10 2002 using texi2html