A loop statement allows us to execute a block of code multiple times. A for loop allows you to execute a block of code a specific number of times.
...
Code Block |
---|
for i = 1, 5 do trace("Iteration: "..i) end |
We can see the following this example clearly in the Translator by navigating the loops in the Annotation Windows and seeing the iteration count change.
...