Search
 
SCRIPT & CODE EXAMPLE
 

LUA

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
Comment

PREVIOUS NEXT
Code Example
Lua :: roblox how to get character from player 
Lua :: default value lua 
Lua :: grepper lua 
Lua :: lua list append 
Lua :: prompt developer product purchase roblox 
Lua :: how to delete parts with a script in roblox studio 
Lua :: lua functions 
Lua :: string.match roblox 
Lua :: lua len array 
Lua :: awesome wm tasklist disabled icon 
Lua :: lua empty table 
Lua :: lua hash table length 
Lua :: pcall lua 
Lua :: lua how to make a click button 
Lua :: init.lua set font 
Lua :: wails compile 
Lua :: Simple Roblox Lua Function 
Matlab :: find duplicates in matlab arrauy 
Matlab :: matlab log 
Matlab :: matlab syms array 
Basic :: pmatplotlib draw a square with a magenta dotted line and pentagon markersython matplotlib overlaped 
Basic :: how to dynamically change the font size of a button visual basic 
Elixir :: elixir datetime to timestamp 
Elixir :: elixir string show inner binary 
Scala :: How to declare constant variable in scala 
Actionscript :: move records from table to another using knex migration 
Excel :: excel conditionally highlight rows based on column 
Perl :: perl remove all whitespace 
Pascal :: print in pascal 
Powershell :: get-childitem supress errors silently 
ADD CONTENT
Topic
Content
Source link
Name
8+6 =