9951 explained code solutions for 126 technologies


luaCreate a while loop


while( true )
do
   print("This loop will run forever.")
endctrl + c
while( true )

evaluates expression in paranthesis and is true run statements following do

do

statements to be evaluated comes after do

print("This loop will run forever.")

as an example, print statement is shown

end

end of the loop