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.

Group value is temperature ... how
#1
Hi,
I have a condition in the script - 2 byte group address temperature. How should I write to compare if the temperature is equal to or less than any value?
thanks
Borek
Reply
#2
Code:
value = event.getvalue()
if value >= 25 then --if value is 25 or larger then
 dosomething
elseif value < 25 then --if value is smaller than 25 then
 dosomething
end

Best regards, Jørn.
Reply


Forum Jump: