if else structure

Tip: use the "Auto Format" option of the IDE. This will format your code like this and make it obvious that YOUR indentation does not match the result of the compilation

void loop()
{

  if (digitalRead(12) == HIGH)
    digitalWrite(0, HIGH);
  digitalWrite(1, LOW);
  else
    digitalWrite(0, LOW);
  digitalWrite(1, HIGH);

}