Can be used much like a |
local i = 1 while i < 5 do print(i) i = i + 1 end |
Common use of a |
while true do print("This loop will run forever.") break end |
$ lua while.lua 1 2 3 4 This loop will run forever. |
Next example: If/Else.