Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Folder condition comparing two variables

Featured Replies

Posted

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

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.

 

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.

  • Author

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.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.