Mystery of escaping a while loop?

Sorry for wasting your time guys and thank you very much for the help. It was so obvious :frowning: