the if-case is taken only one time in the while-loop, why?

AWOL: does he need it? He is in an infinite while loop and I don't see a break, so it never comes out of it.