Problem with if/else

You could just write

void loop() {
  digitalWrite(12, digitalRead(53) == LOW ? HIGH : LOW);
  delay(12);
  digitalWrite(10, digitalRead(49) == LOW ? HIGH : LOW);
  delay(12);
}

BTW. what are the delays for?