qck.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.
WAIT Statement
  ◄Summary►  ◄Details►  ◄Example►                ◄Contents►  ◄Index►  ◄Back►
──────────────────────────────────────────────────────────────────────────────
 Suspends program execution until a specified bit pattern is input from an
 input port.
 
    WAIT portnumber%, and-expression% [,xor-expression%]
 
    ■ portnumber%       Number specifying the input port
 
    ■ and-expression%   Integer expression that WAIT combines with the bit
                        pattern value using an AND operator; when the result
                        is nonzero, WAIT stops monitoring the port
 
    ■ xor-expression%   Turns line bits on and off in the bit pattern before
                        the AND operation is applied (optional)
 
 See Also
    ◄INP Function►           ◄Logical Operators►      ◄ON COM Statement►
    ◄OUT Statement►          ◄SLEEP Statement►