Assembly Language Help (alang.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.
Relational Operators
 Example                                   Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Syntax:   expression1 EQ expression2
 
            expression1 NE expression2
 
            expression1 GT expression2
 
            expression1 LT expression2
 
            expression1 GE expression2
 
            expression1 LE expression2
 
  See also: Comparison Run-Time Operators,
            Conditional-Assembly Directives
 
  Description:
 
     The EQ, NE, GT, LT, GE, and LE relational operators determine if
     two constant expressions or data labels (in the same segment)
     are equal, not equal, greater than, less than, greater than or
     equal, or less than or equal to each other. The comparison returns
     true (-1) or false (0).
 
     These operators work only with assembler symbols and constants;
     they cannot be used to evaluate registers or memory locations.
     Use comparison run-time operators with the .IF, .ELSEIF, .WHILE,
     and .UNTIL directives.
                                    -♦-