Jump to content

Advice, please - how to program something like a nested "if"


simonw

Recommended Posts

Posted

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

Posted

Perfect - thank you, Lee.

 

This also explains why I have had puzzling results debugging program chains using "disable" ...

 

Have a great day,

 

Simon

Posted

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.

Guest
This topic is now closed to further replies.

×
×
  • Create New...