bool c_1 = condition_1;
bool c_2 = condition_2;
bool c_3 = condition_3;
if (c_1 || c_2 || c_3){
if (c_1) Serial.println("1st condition that passed the if statement");
if (c_2) Serial.println("2nd condition that passed the if statement");
if (c_3) Serial.println("3rd condition that passed the if statement");
}
1 Like