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.
Generate Error If Arguments Are Same/Different
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Syntax:   .ERRDIF[I] <textitem1>, <textitem2> [,message]
 
            .ERRIDN[I] <textitem1>, <textitem2> [,message]
 
  See also: IFDIF, IFIDN, .ERR, .ERRE, .ERRB, .ERRDEF
 
  Description:
 
     The .ERRDIF directive generates an A2060 error if <textitem1> and
     <textitem2> are different. .ERRIDN generates an A2059 error if the
     arguments are identical. These directives are commonly used inside
     macros to test for bad values passed as parameters. The .ERRDIFI
     and .ERRIDNI directives act the same as the .ERRDIF and .ERRIDN
     directives but perform case-insensitive comparisons.
 
     The <textitem1> and <textitem2> parameters are text items.
     See: textitem
 
     If <message> is given, it will be displayed with the standard
     assembler error messages. The <message> parameter is any text item.
     See: textitem
                                    -♦-