I am getting an error:
expected primary-expression before '==' token
void loop() {
if (digitalRead(buttonPins[i])) == LOW) && (digitalRead(modePin)) == LOW)))
{
// do Thing A
}
else if (digitalRead(buttonPins[i])) == LOW) && (digitalRead(modePin)) == HIGH)))
{
// do Thing B
}
}
The error highlights the else if line but passes earlier line thats very similar. Appreciate knowing how to correct, thanks