In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: John, I normally do "IF...AND" this way: [code] ' code to flash MyLed when Switch1 AND Switch2 are closed ' Switch pins use internal pull-up so open = 1 ' IO Pins MyLed PIN RC.0 Switch1 pin RB.1 Switch2 pin RB.2 ' Variables Main: IF Switch1 = 0 THEN IF Switch2 = 0 THEN HIGH MyLed PAUSE 500 LOW MyLed PAUSE 500 ENDIF ENDIF GOTO Main [/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=157351#m157387 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)