expecting EOF , found 'else'

I can’t find what the issue is. This is the full script BUT the issue is at the only “else” statement

function Controle (){

currentSpeed = 222/7wheelRL.radiuswheelRL.rpm60/1000;

currentSpeed = Mathf.Round(currentSpeed);

if (currentSpeed < topSpeed & currentSpeed > -maxReverseSpeed & !braked){

wheelRR.motorTorque = maxTorque * Input.GetAxis(“Vertical”);

wheelRL.motorTorque = maxTorque * Input.GetAxis(“Vertical”);

}

}

else {

wheelRR.motorTorque =0;

wheelRL.motorTorque =0;

}

if (Input.GetButton(“Vertical”)==false){

wheelRR.brakeTorque = decellarationSpeed;

wheelRL.brakeTorque = decellarationSpeed;

}

You need to format your code properly, if you had you would have easily spotted you mistakes. Look at your reformatted code below and the comments that tell you where you have gone wrong :

function Controle() {

    currentSpeed = 2*22/7*wheelRL.radius*wheelRL.rpm*60/1000;
    currentSpeed = Mathf.Round(currentSpeed);

    if (currentSpeed < topSpeed & currentSpeed > -maxReverseSpeed & !braked){
    
        wheelRR.motorTorque = maxTorque * Input.GetAxis("Vertical");
        wheelRL.motorTorque = maxTorque * Input.GetAxis("Vertical");
    
    } //This bracket should not exist, delete it!
    } else {
    
        wheelRR.motorTorque =0;
        wheelRL.motorTorque =0;
    }
    
    if (Input.GetButton("Vertical")==false){
    
        wheelRR.brakeTorque = decellarationSpeed;
        wheelRL.brakeTorque = decellarationSpeed;
    }
//You have no closing bracket to your "Controle" function, put a } here.

You will get more errors now this is fixed if this really is your full script, you never declare your variables anywhere… Control is also how you spell Control(not Controle).

You are also using &, you should use && for and operators.