I want to do something when the button is pushed, and EITHER of the other two statements are true. I know I can create two separate if statements otherwise.
I think is OK other than the parenthesis at the end, but can't check it easily right now. But wasn't sure the AND/IF would work. Do the brackets break up the AND and IF statements?
I assume that the statement means that both the red and green sections need to be true , but either of the green statements make that part true?
Pete-Repeat:
I think is OK other than the parenthesis at the end, but can't check it easily right now. But wasn't sure the AND/IF would work. Do the brackets break up the AND and IF statements?
I assume that the statement means that both the red and green sections need to be true , but either of the green statements make that part true?
that's the general idea except you are a little random on the ()
Sometimes its easier to write a small sketch and use serial print to prove that the code is correct (correct in the sense that it does what you think it does)