In the Sparkfun Inventors Kit the sample code for a push button runs under the format of "if____,then____,else____"
if (((button1State == LOW)))
digitalWrite(ledPin, HIGH); // turn the LED on
digitalWrite(ledPin, LOW); // turn the LED off
I was wondering if you can have more than one "then" and the arduino randomly picks a "then".
The format would be like" if__,then__,or__,or__,else__". I tried to do that but the "or" doesn't turn orange like "if and else"
If there is a way to do this or close to doing this i would appreciate if you can reply
Thanks in advance