lua get index in table code example
Example: 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]
--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]