Second If only tested when first If is true

That code still has this line in it

I've double checked the code and can't finde the " if ((Reset == HIGH) && (SwitchPin == HIGH))" in the code in Post#8 anymore.

Thats a copy of the code from Post#8:

void loop() {
  // Wait for an IR Code
  numberpulses = listenForIR();
  Reset = digitalRead(ResetPin);

  if (IRcompare(numberpulses, RedButton, sizeof(RedButton) / 4)) {
    digitalWrite(SwitchPin, HIGH);
    delay(100);
    
  }

  if (Reset == HIGH) {
    digitalWrite(SwitchPin, LOW);
    Serial.print("Reset");
    delay(100);
    
  }

}