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.

Programs: The initial "And" or "Or"?

Featured Replies

Posted

In a program, does it matter if the first "If" statement begins with And or OR, or does that only matter for the subsequent IF statements?

The terms "and" and "or" are used to logically connect two conditions, just like in standard English grammar.  So, an "and" or "or" without a condition on both sides of it is not doing anything.  I wasn't aware that ISY would let you start off with an "and" or "or" statement, since I have never tried it seeing as there is no logic to it.  But, assuming ISY does let you, there would be no point in doing it.

  • Author

thanks to both of you

 

Yes, I agree it would be more clear if the initial statement did not have And or OR as options, but it does.

The ISY does not know in advance where you are going to insert a statement, so the And/Or option is always there. But neither the And nor the Or are ever placed in front of the first statement. Try it. Insert two If conditions. Move the second statement to the first position. The And or Or no longer precedes that specific condition

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.