Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Lua
how to get the length of a table in lua
user8140
Programming language:
Lua
2021-02-22 14:07:02
0
Q:
how to get the length of a table in lua
Mataa Simpson
Code:
Lua
2021-02-28 05:44:19
Use the # Operator (#table)
1
Kurt
Code:
Lua
2021-08-26 18:59:39
myTable = {1, 2, 3} for i = 1, #myTable do -- Code end
0
Tags
get
table
tab
how
"length
Related
lua table of alphabet
lua variable types
Lua how to get the index of a nested table
lua print all elements table
for i in pairs lua
lua for each in table
lua in pairs
lua last item in table
how to print in lua
lua calculate average number
length of table lua
lua list of all keys
lua table of all characters
lua difference between pairs and ipairs
lua print contents of table
Lua How to check what index belongs to value
New to Communities?
Join the community