bas7qck.hlp (Table of Contents; Topic list)
WAIT Statement
  Syntax  Details  Example                 Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
WAIT  portnumber, and-expression% [,xor-expression%]
 
  ■ portnumber        An unsigned integer expression between 0 and
                      65,535, inclusive, that is the number of the machine
                      input port.
  ■ and-expression%   An integer expression that is repeatedly combined
                      with the bit pattern received at the port, using
                      an AND operator; when the result is nonzero, the
                      WAIT statement stops monitoring the port, and program
                      execution resumes with the next program statement.
  ■ xor-expression%   Can be used to turn bits on and off in the received
                      bit pattern before the AND operation is applied.
 
  ■ The WAIT statement is not available in OS/2 protected mode.
 
See Also    INP    OUT    AND Operator    XOR Operator