error with "else" command

i'm trying to make a scetch, containing a "if - else" statement, but get the following error message:

 In function 'void loop()':
error: 'else' without a previous 'if'

but here is a part of my code where i have if/else: >:(

void loop (){
 
  brStateOPP = digitalRead(brOPP);
  if (brStateOPP == HIGH);
  {
    if (brEND != HIGH);
    {
    digitalWrite(solOPP, HIGH);
    }
  } 
  else{
    digitalWrite(ledPin, LOW);
      }

anyone that see what i have done wrong? :o

btw: i'm a total noob on arduino programming :stuck_out_tongue:

Haavard GJ,

Remove the semicolons from your 'if' statements:

if (brStateOPP == HIGH)
  {
    if (brEND != HIGH)

Regards,

-Mike

damn... i'm stupid :stuck_out_tongue:

thanks