10.11.2022, 12:12
(This post was last modified: 10.11.2022, 12:12 by davidchispas.)
I think they have not understood me. I know the script doesn't work, I want to use the same condition several times within the same script but just changing a number.
how can i make it work??
The example would be something like this.
how can i make it work??
The example would be something like this.
Code:
aaa1 = '1/1/1'
aaa2 = '1/1/3'
bbb1 = grp.getvalue('1/1/2')
bbb2 = grp.getvalue('1/1/4')
value = event.getvalue()
i = 1
if value == 1 then
grp.write(aaa.. i, bbb.. i)
end
i = 2
if value == 2 then
grp.write(aaa.. i, bbb.. i)
end