Answers for "lua table get length"

Lua
2

how to get the length of a table in lua

myTable = {1, 2, 3}

for i = 1, #myTable do
	-- Code
end
Posted by: Guest on June-01-2020

Browse Popular Code Answers by Language