Answers for "lua how to silence error and continue code"

C
3

continue in lua

-- Lua has no continue statement because it's designed to
-- be lightweight. Use goto instead:

arr = {1, 2, 3, 5, 6, 7, 8}

for key, val in ipairs(arr) do
  if val > 6 then
     goto skip_to_next
  end
  -- perform some calculation
  
  ::skip_to_next::
end
Posted by: Guest on May-04-2020
0

lua infinite

for i=0, math.huge do

end
Posted by: Guest on March-19-2020

Code answers related to "C"

Browse Popular Code Answers by Language