simonw Posted March 3, 2012 Posted March 3, 2012 Greetings I am spinning a web with dozens of programs acting as occupancy sensors and countdown timers and running time meters, and so far so good, this is great and I appreciate the valuable ideas and tips here on the forum. Sometimes I want program A (something that determines occupancy, say) to call an If statement in program B (like turn lights on of they're not already on and it's dark outside), - but - I don't want program B If evaluated unless I call it from another program. In practice it seems like Program B just does its sweet thing and so my approach is useless. Could Folder Conditions be made to help somehow?? I welcome suggestions about the right "ISY way" to go about this sort of task. Thanks in advance, Simon
LeeG Posted March 3, 2012 Posted March 3, 2012 Mark Program B Disabled. It can still be called from another Program but will not trigger the If on its own.
simonw Posted March 3, 2012 Author Posted March 3, 2012 Perfect - thank you, Lee. This also explains why I have had puzzling results debugging program chains using "disable" ... Have a great day, Simon
apostolakisl Posted March 3, 2012 Posted March 3, 2012 Disabled programs function very much the same as callable subroutines. One point, however, calling these "subroutines" does not necessarily happen in order. In other words, if you have 2 "run ifs", the first one doesn't necessarily execute before the second one.
Recommended Posts