larryllix Posted October 2, 2020 Posted October 2, 2020 (edited) We have And(), along with OR() in ISY trigger logic. NOT(...) would be nice to simply some logic trigger lines where complex logic is required. Many people have trouble with DeMorgan's theorum to convert logic. I admit, I am getting rusty also. eg: If ( XXXX is switched On OR YYYY is switched On ) AND ( NOT ( <--------------------------- provides an easier to understand OR logic that runs Else, keeping function concepts in one program XXXX is switched Off OR YYYY is switched Off ) ) Then turn lights On Else turn lights off If ( CabinetDoor1 status is On OR CabinetDoor2 status is On ) OR ( NOT ( <----------------------------------provides a simplified AND logic run Else trigger logic = both are closed CabinetDoor1 status is Off AND CabinetDoor2 status is Off ) ) Then turn CabinetLight On Else turn CabinetLight off Edited October 2, 2020 by larryllix
asbril Posted October 2, 2020 Posted October 2, 2020 I just looked up and saw something going right over my head But I think that I get it...... 1
lilyoyo1 Posted October 2, 2020 Posted October 2, 2020 Just now, asbril said: I just looked up and saw something going right over my head But I think that I get it...... Yeah, looks more complicated than the normal way 1
larryllix Posted October 12, 2020 Author Posted October 12, 2020 Here is another fine example where this syntax is required to simplify ISY program coding logic down from about four programs to one program.
Recommended Posts