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.

dbwarner5

Members
  • Joined

  • Last visited

Solutions

  1. dbwarner5's post in First program having major issues was marked as the answer   
    @ILey Yes, you are correct it wont show CONTROL in the IF portion but notice it says " switched on". That is meant to imply an action. Compared to if you changed the IF to Status is on, it will status. Here is an example of the two different If conditions. First line is the Control, the second is the status. Yes its a bit confusing, but you will get it with use.
    If
            'Alarm 5' is switched Off
         Or 'Alarm 5' Status is Off
     
    Secondly on your question regarding parenthesis, yes you highlight it, after adding and then "move line up" or down and move them where they will make sense. Here are a few screenshots of an example
    Step one: I have all three lines in the program, but I want the first two nested together with an AND () for the second, so I add an AND () and it shows up at the bottom. 
     
    If
            'Alarm 5' is switched Off
         Or 'Alarm 5' Status is Off
        And 'Bar upper cabinet' Status is Off
        And (
            )
     
    Now I click on the top ( and select move line up. It now looks like this:
    If
            (
                 'Alarm 5' is switched Off
              Or 'Alarm 5' Status is Off
             And 'Bar upper cabinet' Status is Off
            )
     
    Now I need to move the bottom ) up as well. I click on it and select move line up. it now looks like this.
    If
            (
                 'Alarm 5' is switched Off
              Or 'Alarm 5' Status is Off
            )
        And 'Bar upper cabinet' Status is Off
     
    This has accomplished grouping the status is off or switched (control) off as a group combined with the and on the bottom line. For clarity I often add a second () as follows:
    If
            (
                 'Alarm 5' is switched Off
              Or 'Alarm 5' Status is Off
            )
        And (
                 'Bar upper cabinet' Status is Off
            )
     This isn't really needed at all, especially for this program, but I have some more complex if where it makes reading it much easier; see example below. 
    If
            'Main House' Armed Status is not Disarmed
        And $Dougs_iPhone_13_home2 is 1
        And (
                 'Main House / Garge Ovhd Mid' Logical Status is Violated
              Or 'Main House / Garge Ovhd South' Logical Status is Violated
              Or (
                      'Lock - Rear Garage' is switched Alarm Unlocked by Keypad
                  And 'Lock - Rear Garage' User Number is 1
                 )
              Or (
                      'Lock - Front Door' is switched Alarm Unlocked by Keypad
                  And 'Lock - Front Door' User Number is 1
                 )
              Or (
                      'Lock - Mud Room' is switched Alarm Unlocked by Keypad
                  And 'Lock - Mud Room' User Number is 1
                 )
            )
     
     

Account

Navigation

Search

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.