Postman loop over request with while loop

There is a topic here explaining looping over a request over and over with a while loop.

This seems wrong/incorrect to me. Please let me know. In this case it just looks like they are running setNextRequest(); ten times and then that request will keep looping forever.