ଲୁଆ ଚାରି ପ୍ରକାରର loops ବ୍ୟବହାର କରିଥାଏ: the while loop, the repeat loop (similar to a do while loop), the for loop, and the generic for loop.
--condition = true

while condition do
end

repeat
until condition

for i = first,last,delta do --delta may be negative, allowing the for loop to count down or up
end
The generic for loop:

for key, value in pairs(_G) do
end

would iterate over the table _G using the standard iterator function pairs, until it returns nil.

ଲୁପ୍
As array
As namespace
Tables