I'm having trouble with syntax errors before "else" when I compile
My code looks like this:
if (x == 1)
{
statement1
else if (x == 2)
statement2
else if (x == 3)
statement3
}
else
statement4
It gives me the errors on the middle else's. I know its something small but I can't seem to figure it out. If I try to add more braces inside the else if I start to lose my variable definitions.