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