i'd like to know if there is any possibility to read out dynamic variable names? Since the programm that passes the variables to my script calls them just "in1, in2, in3" etc. Hopefully there is any way to make a loop, because it is pretty annoying to handle every input separately...
Here is what i've tried so far, but it just gives me an error.
for i=1,19,2 do
myvar[i] = ["in"..i]
end
I'm quite new to Lua, but i hope the solution is not that difficult :D
Edit: Oh I'll try to give you some more information. The "Main" Program is no not written in Lua and just set theese "in1 ... " variables. It is a kind of robotic programmic software and has a lot of funktions build in. Thats the whole thing so i can not simply use other variable names or an array. So it is not a function or anything else related to Lua... Here is a little Screenshot http://www.bilderload.com/daten/unbenanntFAQET.jpg At the moment the Lua script just passes the the first input.