Microsoft KB Archive/23474

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 18:53, 18 July 2020 by 3155ffGd (talk | contribs) (importing KB archive)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Performing Macro Substitutions in Logical Expressions ID Number: Q23474

1.25-5.00 MS-DOS

Problem: When scanning logical expressions, MASM should not perform macro substitutions. If “AND” is defined as a macro, the statement “IF X AND Y” will cause error 28, “operator expected”.

Response: The operator “AND” is a boolean operator. It should not be redefined as a macro. A workaround is to use a different variable name for your macro.