qp.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
IF Keyword
  Keywords Contents Index                                   Back
 
  IF <expression> THEN
     <statement-block>
  [ELSE
     <statement-block>]
 
  Description
 
    The statement block after THEN is executed if the Boolean
    expression is True. Otherwise, the statement block after ELSE is
    executed. The ELSE part is optional. Don't immediately precede
    ELSE with a semicolon, as the compiler will then treat the
    semicolon as the end of the IF statement and generate a compiler
    error when it encounters ELSE.
 
  See also:  CASE, Conditional statement, Pascal Statement Hierarchy