Mr_Spokes
(Mr_Spokes)
April 12, 2024, 3:31am
#1
I was just wondering if there was a way to get an index of a table from within that table when instantiating it. Theoretically it might look something like this:
local testTable = {
["testIndex"] = 5,
["testIndex2"] = testTable.testIndex
}
1 Like
Stratiz
(Stratiz)
April 12, 2024, 3:36am
#2
No, since you cant reference a table you havent finished initally defining.
Closest thing you could do is:
local testTable = {}
testTable.testIndex = 5
testTable.testIndex2 = testTable.testIndex
1 Like
system
(system)
Closed
April 26, 2024, 3:36am
#3
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.