News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Conditional Operator Syntax

Started by dicky96, January 02, 2006, 07:38:03 PM

Previous topic - Next topic

dicky96

To get straight to the point..... what's wrong with this?

.if eax==0 OR eax>65535

Test.asm(130) : error A2154: syntax error in control-flow directive


I've played around with variations on the above but  just can't seem to get the right syntax.

TIA

dicky

MichaelW

Hello dicky, welcome to the forum.

Try using "||" instead of OR.

See Run-Time Operators here:

http://webster.cs.ucr.edu/Page_TechDocs/MASMDoc/ReferenceGuide/Chap_03.htm


eschew obfuscation

dicky96

Thanks m8, and thanks for the welcome  :U