How to combine AND and OR operators? ...Continued

It’s easier to figure out the result of chained Boolean comparisons (in Bubble) than you are making it.

Here’s the general form of a Boolean comparison:

1 B 2

Where 1 and 2 are Boolean expressions and B is a Boolean operator (AND or OR in Bubble).

Let’s say that the result of 1 B 2 is represented by “12” (meaning the result of the comparison of “1” and “2”).

Now let’s look at a chain of such comparisons:

1 B 2 B 3 B 4 B 5

We just evaluate them left to right, each evaluation collapses the leftmost comparison, so we start as above, but step by step we get:

12 B 3 B 4 B 5
123 B 4 B 5
1234 B 5
12345

So:

AB AND C OR D
ABC OR D
ABCD

5 Likes