I'd like to retrive data from a table but instead of using the exact word I'd like to use a variable.
For example
Is it possible?
For example
Code:
variableSon = "sons"
local table = {mother = "mom", sons = {first = "jack", middle = "John", last = "Jonathan"}}
So intead of using table.sons.first I want to use the variable
example
table.variableSon.first
Is it possible?