Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Hi. I want to set a variable inside a multidimensional table using the entrys from a table.
- --A simple example of what i am trying to do :
- -- table with the keys :
- local tTablePath = {"Key1", "Key2", "Key3"}
- -- The multidimensional table :
- local tTheOtherTable = {}
- tTheOtherTable["Key1"] = {}
- tTheOtherTable["Key1"]["Key2"] = {}
- tTheOtherTable["Key1"]["Key2"]["Key3"] = {}
- --I want to change the value of <tTheOtherTable["Key1"]["Key2"]["Key3"]> but i only have the keys in the table <tTablePath>. How can i do this?
Advertisement
Add Comment
Please, Sign In to add comment