Why can't I use == in mono develop?

im just starting to learn javascript and i cant use == i don’t know if im doing something wrong or the program just doesn’t allow it anymore. Anyways heres my script any help would be greatly appreciated.

#pragma strict

function Start () {

}
var gameReset = true;

function Update () {

if(gameReset == true);

{
gameObject.renderer.material.color =Color.white;
}
if(Input.GetKeyDown(KeyCode.R))
{
gameObject.renderer.material.color =Color.red;
}
if(Input.GetKeyDown(KeyCode.B))
{
gameObject.renderer.material.color =Color.blue;
}
if(Input.GetKeyDown(KeyCode.C))
{
gameObject.renderer.material.color =Color.cyan;
}
if(Input.GetKeyDown(KeyCode.G))
{
gameObject.renderer.material.color =Color.green;
}
if(Input.GetKeyDown(KeyCode.Y)
{
gameObject.renderer.material.color =Color.yellow;
}
var gameErrorCheck = false;
var gameErrorPrint = " There are no Game Errors.";
var gameErrorMessage = gameErrorCheck + gameErrorPrint;
print (gameErrorMessage);

}

The problem is not the == it is the ; at the end of that line. This makes it an empty statement which does nothing, and mono is smart enough to flag that as a problem.