BREAK
break
Use this keyword to immediately stop and exit a loop.
Example:
for i = 0, 10 do
if i == 5 then
break
end
print ( i )
end
--prints 0 1 2 3 4
Images in this Guide by NerdyTeachers is licensed under CC BY-SA 4.0

1104
15 Jun 2023