You should learn to use youre debugger. Had you done that, you would have very easily noticed the problem by stepping through the code.

Line 10 has the wrong comparison operator, so it is not...