In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Beau Schwabe wrote: It shouldn't matter if it is reversed or not, as long as you check the proper condition. You don't need to initialize SwitchTotal, you can do something like this... For your original question.... [code] SwitchTotal = switch1 + switch2 IF SwitchTotal = 2 THEN (LED flash) [/code] Or for your newest question.... [code] SwitchTotal = switch1 + switch2 IF SwitchTotal = 0 THEN (LED flash) [/code] ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=157351#m157374 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)