Multi dimension array in Lua

hi gurus,

can anyone provide multi dimension array sample in lua?
i keep on receiving error :frowning:

Thanks for the help! [import]uid: 10373 topic_id: 3528 reply_id: 303528[/import]

can you post the offending code?

local m = { { x = 25,y = 25, w = 100, h = 20 }, { x = 50,y = 50, w=100,h = 40 }}  
print ( m[1].x )  
  
print (m [2].w )  
  

yields : 25 100

  
local m = { { {x = 25,y = 25 } , { w = 100, h = 20} }, {{ x = 50,y = -50 }, {w=100,h = 40} }}  
  
print ( m[1][2].w )  
  
print (m[2][1].y )  

yields : 100 -50
c [import]uid: 24 topic_id: 3528 reply_id: 10655[/import]