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.

Object write with
#1
Hi, can You help me, the red part of script doesnt work to me. I need if STAV==1, to wait 5times x 10sec if it change to 0.

STAV=grp.getvalue("10/1/181")
pocet=5

if (event.getvalue()==true)
  then
  if(STAV==0)
    then
    grp.write("10/0/0", true)
    end
  else
  repeat
    os.sleep(10)
    pocet=pocet-1
    if(STAV==0)
      then
       grp.write("10/0/0", true)
   end
  until (pocet==0)
end
Reply


Messages In This Thread
Object write with - by 2MAX - 19.01.2023, 19:00
RE: Object write with - by tigi - 19.01.2023, 20:07
RE: Object write with - by 2MAX - 20.01.2023, 05:09
RE: Object write with - by admin - 20.01.2023, 07:06

Forum Jump: