Your break example is wrong, break has to go after your code inside the loop, like this:
for i,v in ipairs{1, 2, 3, 4, 5} do -- looping table
if v == 2 then -- checking if the value is "2" while looping
outputDebugString("Loop broken") -- outputs to debug
break -- breaking/stopping loop
end
end