STOP SERVO

Hello, I have a problem with stop the servo thing. On my if-else function, I don't write anything of the else and do not qualify, but still spinning.

Post your code

Have you got a servo or a continuous rotation "servo" ? Can you please post a link to it