9951 explained code solutions for 126 technologies


luaHow to break loop


Lua doesn't have continue statement, but we can easily use goto instead:

while true do
  if ( true ) then break end
endctrl + c
while true do

sample loop

if ( true ) then

condition to break loop execution (always break in our case)

break

exists loop