Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR LUA

for i in pairs lua

local table =  {2,3,12, "Hello"} --a simple array
for i, item in pairs(table) do -- for i in pairs loop goes through all the items in an array/table
	print(item)
end
 
PREVIOUS NEXT
Tagged: #pairs #lua
ADD COMMENT
Topic
Name
7+8 =