yardman 49 Posted January 3, 2008 Posted January 3, 2008 Hello all: I'm looking for an explanation as to what "True" or "False" (in the Status column of the program summary) means to the ISY. "Activity" (Idle, Running Then, Running Else) is self explanatory. But I don't really grasp True or False in this context. Anyone care to take a stab at explaining this? If we get a good definition, we can update the Wiki. Thanks much Quote
Mark Sanctuary Posted January 3, 2008 Posted January 3, 2008 From what I understand its... The 'Status column' displays the status of the If statment for each porgram at that moment in time. ...a small stab, I am sure its not the best answer. Quote
Chris Jahn Posted January 3, 2008 Posted January 3, 2008 A program always has a state of either True or False. This state can be used as a condition in a program (ie. if 'Program X' is True then ...). A program becomes True only when its 'Then' path is run. A program becomes False only when its 'Else' path is run. Nothing else changes the True/False state of a program. When a program is run (either Then or Else) then it is an event for any program referencing it, thus causing the program referencing it to run (either Then or Else depending on that programs conditions). By having a True/False state, you can have a complex set of conditions for one program, and reference it from another program. For example, you may want to have programs that only do things during, (or some not during) office hours. eg. Program Office Hours: If On Mon, Tue, Wed, Thu, Fri From 9:00:00AM To 5:30:00PM (same day) Or On Sat, Sun From 10:00:00AM To 2:00:00PM (same day) Then - No Actions - (To add one, press 'Action') Else - No Actions - (To add one, press 'Action') Turn the lobby lights on during office hours (off otherwise): If Program 'Office Hours' is True Then Set 'Lobby ' On Else Set 'Lobby' Off keep the conference room light off outside office hours, and only allow the conference room switch to work during office hours: If Program 'Office Hours' is True And Control 'Conference Room' is switched On Then Set 'Conference Lights' On Else Set 'Conference Lights' Off Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.