Hello, for some reason the code is constantly drawing a line upon compiling even though I have created a proper if structure which tells it when to draw or not to draw a line. Basically, I want it to draw a line when the user clicks line from the menu, but for whatever reason, the if statement is always executing and thus a line is almost always drawn when starting the application, can anyone spot where I'm going wrong? I have a class called Lineand inside is a draw function that looks like this:
That's cause the cases are testing true and control is basically 'bypassing' if you will, the if-statements. Here's a tip, try placing the if statements INSIDE the cases, see if that gives you the desired results.