C# Error with if statement

i have this bit of code

void Update () {
        if (gear = 1 )
            rlight1.enabled = true;
            rlight2.enabled = true;

        else if (gear > 1 ) 
            rlight1.enabled = false;
            rlight2.enabled = false;
    }

and have the variables set up, but it's telling me to put a semicolon on this line :

else if (gear > 1 )

waht is happening and how do i fix it?

You need to add braces, only single lines can be written without:

void Update () {
        if (gear == 1 ) {
            rlight1.enabled = true;
            rlight2.enabled = true;
        } else if (gear > 1 ) {
            rlight1.enabled = false;
            rlight2.enabled = false;
        }
}