-- Lua loops have no continue statement even though they have break, but as a workaround we -- can use while function with return true for continue and return false for break. while (function() if foo then return false end ...