In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: [quote="Thad"] Is there a way to do an if then with an or in such as: If X = 1 or P = 7 then Thanks Thad [/quote] Like this: [code] DO IF X <> 1 THEN EXIT IF P <> 7 THEN EXIT ' Do whatever for IF X=1 OR P=7 THEN LOOP NEVER [/code] Bean ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=156195#m156232 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)