Posted 05 November 2017 - 01:03 PM
Hello. I am working currently on a project, which opens specific channels on specific a modem.
I have wrapped a modem to modem1, modem2, modem3, modem4, modem5, and modem6. How can I connect the string "modem" to a variable that holds the number that I want to add to the end of string? The code looks something like this:
I have wrapped a modem to modem1, modem2, modem3, modem4, modem5, and modem6. How can I connect the string "modem" to a variable that holds the number that I want to add to the end of string? The code looks something like this:
for z=1,6 do
"modem"..z.open(x) --Help me with this line
end
In this case I am trying to open the channel x on each modem.