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.

How to script the control logic of air conditioner?
#2
value = event.getvalue()

if value > 0 and value < 10 then
--do something
elseif value > 10 and < 25 then
--do something
elseif value < 25 then
--do something
end

You can also use >= 10 instead of > 10 for example.
In the first example also the value 10 itself is included in the second example only every value higher then 10.
Reply


Messages In This Thread
RE: How to script the control logic of air conditioner? - by Joep - 02.04.2020, 14:24

Forum Jump: