In SX Microcontrollers, SX/B Compiler and SX-Key Tool, John Kauffman wrote: ALSO... What if switch normal is reversed form my original question. Because if using pull-ups switch open would be 1 So how to most efficiently code for following (uses subtraction) Main: SwitchTotal = 2 SwitchTotal= SwitchTotal- swith1 SwitchTotalvar = SwitchTotal - switch2 IF SwitchTotal = 0 THEN (LED flash) THanks guys. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=157351#m157370 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)