Jump to content

Folder condition comparing two variables


Recommended Posts

Posted (edited)

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
Posted

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.

 

Posted
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.

Posted

Thanks for the replies - I ended up changing the $outsideHighTemp to a state variable and it now works

Guest
This topic is now closed to further replies.

  • Recently Browsing

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

  • Forum Statistics

    • Total Topics
      37k
    • Total Posts
      371.5k
×
×
  • Create New...