Using yield but have code errors

Hi, I cant figure out how to get this simple code working.

Problem (I think) is lying in the GameOver function

var gameOver : boolean = false;

function Update(){
	if(health <= 0){
		gameOver = true;
	}
}



function GameOver(){
	if(gameOver = true);
	{
		yield WaitForSeconds (3);
		Application.LoadLevel("FinishL1");
	}
}

I added a ‘health’ variable at the top. I fixed a couple of other errors. See comment:

var gameOver : boolean = false;
var health = 10.0;
 
function Update(){
    if(health <= 0){
       gameOver = true;
    }
}
 
function GameOver(){
    if(gameOver == true)  // Double equals, and no ';'
    {
       yield WaitForSeconds (3);
       Application.LoadLevel("FinishL1");
    }
}

Thanks, by the time this Question went up I sorted it!

Cheers.