You can add filters individually or in sets. Logical operators, either AND or OR, are used to combine each filter and filter set. By default, filters are combined using AND (as determined by the field) and filter sets are combined using OR. You can change the default and use OR to combine filters, in which case filter sets are automatically combined using AND. In other words, the logical operator that is to combine individual filters (within in a set) must be the opposite of the operator that is used between filter sets.
You can easily view how these logical operators work. Click both the and options a few times each to create a few filter sets, then switch between AND and OR in the field and observe how the operators change.
As you construct filters and filter sets, you can think in terms of algebraic notation parentheticals, where filters are contained within parentheses, and sets are separated into a series of parenthetical groups. Logical operators (AND and OR) separate the filters within the parentheses, and the operators are used to separate the parentheticals.
For example, "(u AND v AND w) OR (x AND y AND z)" means "match either uvw or xyz." In the filter list, this looks like:
u AND
v AND
w
OR
x AND
y AND
z