expecting stuff thats not there

@HideInInspector
var GameLogicObj : GameObject;
var ButtonID : String;

function Awake ()
{
GameLogicObj = GameObject.FindGameObjectWithTag(“GameLogic”).gameObject;
}

function OnMouseOver ()
{
if(Input.GetButtonDown(“Fire1”));
{
if(ButtonID == “Attachments_IronSight”);
{
GameLogicObj.GetComponent(GameLogic).MainSightID = 1;
}

if(ButtonID == “Attachments_EOTech”);
{
GameLogicObj.GetComponent(GameLogic).MainSightID = 2;
}
}
}

I keep getting the error Assets/Scripts/ButtonTier1.js(16,90) BCE0044 expecting :, found =
Assets/Scripts/ButtonTier1.js(14,25) BCE0045 unexpected token if.
can someone plz help me

if statements don’t end with a semicolon

The way you are writing you “if statements” is inccorrect.
They do not need to be closed with a “;”

You/Incorrect…

if(something);{
doSomething();
}

Correct way…
You/Incorrect…

if(something){
doSomething();
}

thanks its fixed now