c# if function not finding anything to call

this is part of my script
private void MissedBall() {

if (Lives.curlives-- < 1)

}

private void Gameover() {
}

below “if(lives.curlives-- < 1)” im trying to type gameover but it can’t find it or anything else to call.
what am i doing wrong, thanks

You have no body to that if() statement you need

  if(Lives.curlives -- < 1 ) {
      //Do something here
  }