Horje
continue in lua Code Example
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




10

Related
functions click on gui roblox Code Example functions click on gui roblox Code Example
for i in pairs lua Code Example for i in pairs lua Code Example
how to remove characters from a string in lua Code Example how to remove characters from a string in lua Code Example
lua multiline comment Code Example lua multiline comment Code Example
repeating loop roblox Code Example repeating loop roblox Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8