Lua is a lightweight and compact scripting language, written in standard C language and open in source code form. It is designed to be embedded in applications to provide flexible expansion and customization functions for applications.
Lua loop syntax
In many cases we need to do some regular repetitive operations, so we need to repeatedly execute certain statements in the program.
A group of statements that are executed repeatedly is called a loop body. Whether it can continue to be repeated determines the termination condition of the loop.
Lua loop example
while( true )do Print("The loop will execute forever") end