The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: dicky96 on January 02, 2006, 07:38:03 PM

Title: Conditional Operator Syntax
Post by: dicky96 on January 02, 2006, 07:38:03 PM
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
Title: Re: Conditional Operator Syntax
Post by: MichaelW on January 02, 2006, 07:59:39 PM
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


Title: Re: Conditional Operator Syntax
Post by: dicky96 on January 02, 2006, 08:03:08 PM
Thanks m8, and thanks for the welcome  :U