Microsoft KB Archive/23474

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 19:19, 12 August 2020 by X010 (talk | contribs) (X010 moved page Microsoft KB Archive/Q23474 to Microsoft KB Archive/23474 without leaving a redirect: Text replacement - "Microsoft KB Archive/Q" to "Microsoft 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.