Expected identifier before 'if' reset + other button

So i got a reset button, and then 3 other buttons wich i want to reset.
If i press reset and then buttonA, (a == 0)
When i press reset and then buttonB, (b == 0)
And when i press reset, then setPoint,

Then i get the error "expected identifier before 'if' "

  else if (digitalRead(buttonReset) == LOW){
    while(true){
      delay(50);
      if (digitalRead(buttonReset) == HIGH) break;}
     
  and if (digitalRead(buttonA) == LOW){
     while(true){
      delay(50);
      if (digitalRead(buttonA) == HIGH) break;}
    }
     (a == 0);
  }

What's that 'and' doing there?

looks like you start with C++ syntax basics