if..else HELP

void loop (){

   if (digitalRead(pir) == HIGH) {
  digitalWrite(led, HIGH);
} else {
  digitalWrite(led, LOW);
  
}}

Looks like this was hunt-and-pecked by a blind person. The Tools menu has a really cool feature - Auto format. Give it a try. I think you'll like it. We will, for sure.