I have a multiple if, else if, else statement and the problem is that even when a condition is met and the associated code is ran the else statement after is also being executed too.
Can someone please tell me why this is happening as I have read many posts and threads about these statements and I can't see where my logic/syntax is going wrong.
Are you sure that one of the conditions is being met? Have you observed that one of those option_<foo> variables is being set to 1, as well as the else block being executed? Or are you just assuming that's the case?
The variable you're using to store the user input on line 1, is not the same as the variable you're checking in all your if and else if statements. Can you see why?