In SX Microcontrollers, SX/B Compiler and SX-Key Tool, kmonsx wrote: This has come up before. I don't think so. You can't have multiple conditions in an IF statement as far as I know. Parallax gave an answer about a year or so ago when I inquired, and it has to do with how to generate a corresponding codeblock in assembly. I have usually worked around it. Something like [code] ...... if X=1 then somesubroutine if P=7 then somesubroutine ...... ... .. somesubroutine: do the same stuff for x=1 and p=7 here RETURN [/code] should work. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=156195#m156202 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)