Hello,
I'm trying to load a table with some data. I would call the table a "3D" table, for lack of better terms. I know I've done this before, but I'm missing something easy. I appreciate any help this morning.
I create the table as so...
my_table = {};
then I want to load some data....
my_table[1][1] = "apple";
my_table[1][2] = "red";
my_table[2][1] = "banana";
my_table[2][2] = "yellow";
etc...
I'm getting an error, saying I'm trying to index a nil value.
What am I missing?
Thanks!
I'm trying to load a table with some data. I would call the table a "3D" table, for lack of better terms. I know I've done this before, but I'm missing something easy. I appreciate any help this morning.
I create the table as so...
my_table = {};
then I want to load some data....
my_table[1][1] = "apple";
my_table[1][2] = "red";
my_table[2][1] = "banana";
my_table[2][2] = "yellow";
etc...
I'm getting an error, saying I'm trying to index a nil value.
What am I missing?
Thanks!
Comment