Answers for "how to index table lua"

Lua
0

how to access an index of a table lua

--How to access something in a table by its index in lua:

local mytable = {"Hi", 6,"Bye"}

--To access it:

mytable[1]
--or
mytable[2]
--or
mytable[3]
Posted by: Guest on January-09-2021

Browse Popular Code Answers by Language