Jump to content

Folder condition comparing two variables


Recommended Posts

I have a folder condition that compares two non-state variables:

Folder Conditions for 'Hot Weather'

If
        $outsideHighTemp > $fanOnTemp
Then
   Allow the programs in this folder to run.
 

EDIT: forgot to mention, these are not state variables.

The folder is red, indicating that the condition is not being met, but $outsideHighTemp = 93 and $fanOnTemp = 78.  I have some programs which also use the same if statement and they are green.  Is there some kind of problem here?

Edited by JTsao
update
Link to comment

Integer variables will not, by themselves, initiate a change in condition. You need to add something to the If section that will trigger a program evaluation.

Like:

If
        $outsideHighTemp > $fanOnTemp

      and it is 10:00 AM
Then
   Allow the programs in this folder to run.

 

Link to comment
19 hours ago, JTsao said:

folder condition that compares two non-state variables

Could very well be the folder condition, they are known to be unreliable at times. Try removing the folder condition and place the constraint within the program. If you have many programs that need the constraint and you don't want to insert this condition in all of them, you can use a program to enable and disable the other programs based on the required constraint.

Link to comment
Guest
This topic is now closed to further replies.

  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

    • There are no registered users currently online
  • Forum Statistics

    • Total Topics
      36.9k
    • Total Posts
      370.2k
×
×
  • Create New...