Answers for "how to get the length of a table in lua"

Lua
7

length of table lua

Use the # Operator (#table)
Posted by: Guest on March-17-2020
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

Code answers related to "how to get the length of a table in lua"

Browse Popular Code Answers by Language