How it works
A forever loop never ends by itself.
Sometimes that is just right, like a ticking clock or a game that waits for your tap.
But a forever loop needs a way out, or the program gets stuck.
A check inside the loop is a way out: no means go round again, and yes means leave the loop.