I'm not sure if I was some weird syntax problem or the way Ive ordered things. But a conditional statement I have created is not performing the way I want it to.
When debugging, the condition was activated with the values:
1 2 3 4
xDif = -1
yDif = 1
prevXDif = -1
prevYDif = 0
However, I want the condition not to follow through as I am using the 'NOT' or '!' operator to negative the entire statement. For some reason, the line of code within the else if is still running.
So that statement is evaluated to false, which causes all the "&&" and statements to be false. Since you have the "!" not value, your else if evaluates to true and runs the code.