WHILEループ

Whileループは、各ループの先頭でテストが実行されます。

m = 0
while m < 5 do
print("While loop count " .. m)
m = m + 1 -- there is no m++ or m += 1
end