16.05.2020, 12:46
Dear All, I have a question about the group address of table. There are some lines in a GA table, e.g.
table = {
{onoff=1/1/1, feedback=1/2/1},
{onoff=1/1/2, feedback=1/2/2},
{onoff=1/1/3, feedback=1/2/3},
{onoff=1/1/4, feedback=1/2/4},
}
I want to define a local var which called "num",which means when I trigger "1/1/3", the "num"=3, when I trigger "1/1/1", the "num"=1. How can I write the script?
Thanks a lot
table = {
{onoff=1/1/1, feedback=1/2/1},
{onoff=1/1/2, feedback=1/2/2},
{onoff=1/1/3, feedback=1/2/3},
{onoff=1/1/4, feedback=1/2/4},
}
I want to define a local var which called "num",which means when I trigger "1/1/3", the "num"=3, when I trigger "1/1/1", the "num"=1. How can I write the script?
Thanks a lot