This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

multiple identical scripts
#6
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.



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
Reply


Messages In This Thread
multiple identical scripts - by davidchispas - 19.02.2021, 09:01
RE: multiple identical scripts - by Daniel - 19.02.2021, 10:01
RE: multiple identical scripts - by admin - 19.02.2021, 10:05
RE: multiple identical scripts - by admin - 10.11.2022, 06:37
RE: multiple identical scripts - by davidchispas - 10.11.2022, 12:12
RE: multiple identical scripts - by admin - 10.11.2022, 12:49

Forum Jump: