how to get the length of a table in lua
snippet in lua

how to get the length of a table in lua

user4431

myTable = {1, 2, 3}

for i = 1, #myTable do
	-- Code
end