I've been trying to figure out what approach to take to select one of four states with two switches. In other words:
Switch 1 off, Switch 2 off = State 0
Switch 1 on, Switch 2 off = State 1
Switch 1 on, Switch 2 on = State 2
Switch 1 off, Switch 2 on = State 3
You would set the switches and the code would branch to one of four loops. What's the best way to test for this? Nested If..Then...Else statements? Another way?
Any help is appreciated.
Jeff
Switch 1 off, Switch 2 off = State 0
Switch 1 on, Switch 2 off = State 1
Switch 1 on, Switch 2 on = State 2
Switch 1 off, Switch 2 on = State 3
You would set the switches and the code would branch to one of four loops. What's the best way to test for this? Nested If..Then...Else statements? Another way?
Any help is appreciated.
Jeff