Advertisement
koki2000

multiple array

Oct 5th, 2016
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | None | 0 0
  1. tomb = {
  2. [1] = {altomb1 = {
  3.       [1] = {hello = "hello world"},
  4.       [2] = {hello = "hello vilag"}
  5.                  }
  6.       },
  7.  
  8. [2] = {altomb1 = {
  9.       [1] = {hello = "bye world2"},
  10.       [2] = {hello = "viszlat vilag2"},
  11.       [3] = {altomb2 = {[1] = {text = "valami"}}},
  12.                  }
  13.       }
  14. }
  15.  
  16. print(tomb[1].altomb1[2].hello)
  17. print(tomb[2].altomb1[3].altomb2[1].text)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement