Different languages provide different controls, and in Lua, there’s the while loop, for loop, and repeat until loop. This article covers for loops. I will cover while and repeat until loops in a separate article…
Source: LXer – Get to know Lua for loops in 4 minutes