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.

Nested Logic

Featured Replies

Posted

I'm trying to do the equivalent of "IF Button1 is Switched On AND (variable1=1 OR variable2=1) THEN Do this" but using the And (.. ) or Or (.. ) in programs I can't seem to get it right.  I got this to work once somewhere but I don't know how I did it.  How do you use "Add And (..)" and/or "Add Or(..)" to create nested logic like I mention above?  I've too tried playing with "Move Line Up" and "Move Line Down" but just can't get it right.  What's the trick to "Add And (..)" and "Add Or (..)"?  Thanks.

Solved by larryllix

Go to solution
  • Solution

Did you know there are two ANDs and two ORs. Individual lines can each have their own AD/OR logic and there are also two distinct and separate AND and OR buttons that are used with parenthesis. Then you can move each bracket up and down to where you like.

  • Author
10 hours ago, larryllix said:

Did you know there are two ANDs and two ORs. Individual lines can each have their own AD/OR logic and there are also two distinct and separate AND and OR buttons that are used with parenthesis. Then you can move each bracket up and down to where you like.

Thanks.  Yea, it took a little practice moving the statements and/or brackets up and down to get it right.  I'm just used to "free-form" using brackets and logic in a "one-liner" like you'd do in Java or other languages.

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.