Trouble with if() loop

If you are expecting if to loop, you have more troubles ahead.