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.
CASE Statement
  Keywords Contents Index                                   Back
 
  CASE <expression> OF
     <case constant> : <statement>;
          .
          .
     <case constant> : <statement>
   [ ELSE            : <statement> ]
     END
 
  Description
 
    A CASE statement compares the result of an expression to one or
    more case constants. If the values of the expression and a case
    constant match, the associated statement is executed. If none of
    the cases match, the statement associated with the ELSE is
    executed. If there is neither a match nor an ELSE, program
    execution continues at the statement following the END.
 
  See also:  Conditional statement, IF, Pascal Statement Hierarchy