|
| 01 Mar 2015 01:40 AM |
What I want to do is iteratively define variables. It sounds odd at first, but essentially, I want to do something of this nature.
for i=1,10 do var[i] = equation end
This way, I can later operate on these variables without needing to create them all by hand.
I have a rough idea of what I want to do clearly, but I'm lost on the specifics. |
|
|
| Report Abuse |
|
|
| 01 Mar 2015 01:50 AM |
Table = {}
for i=1,10 do table.insert(Table,your variables) end
This is how I would retrieve em.
for i=1,10 do Variable = Table[i] end |
|
|
| Report Abuse |
|
|
| 01 Mar 2015 04:57 AM |
for i=1,10 do getfenv()[i] = equation end |
|
|
| Report Abuse |
|