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.
IN Operator
  Keywords Contents Index                                   Back
 
  Description
 
    The IN operator is a QuickPascal operator that tests for the
    presence of an element in a SET. For example,
 
       TYPE
           vacation_days = ( sep4, oct31, dec25, may29, may30, jul4 );
       VAR
           summer_vacation : SET OF vacation_days;
           today : vacation_days;
       BEGIN
           summer_vacation := [ may29, may30, jul4 ];
           today := jul4;
           IF today IN summer_vacation THEN
               Writeln( 'Surf''s up!' );
       END.
 
  See also:  SET