(22.09.2022, 12:39)admin Wrote: This event script will send ON (true) to 1/1/1 when event value is larger than 10, otherwise it will send OFF (false) to 1/1/1.
Code:value = event.getvalue()
grp.checkwrite('1/1/1', value > 10)
what is wrong on my script below
Code:
if event.getvalue() > 10
then
grp.write('2/3/5', true)
else
grp.write('2/3/5', false)
end
Yours works fine. Thank you