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

545

15 Jun 2023

Font