Exactly. An endless loop works well, don't get me wrong
There is an alternate method - the one Bot190 explained.
Programming is logical, once you know a bit about the structure and learn to think about a situation in a "programming" way - everything is easier and, everything will make sense