Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR LUA

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]
 
PREVIOUS NEXT
Tagged: #access #index #table #lua
ADD COMMENT
Topic
Name
3+2 =