This means that you have an
if / else statement that does not have an
if somewhere near the top of the code. You put down an
else statement that would activate if an
if condition is not met, but you don't have that specific
if in particular.
Revise your code. Perhaps you have an
if statement with a semicolon at the end instead of a curly bracket? That's one of the most common errors when it comes to
if / else statements.