JSS 9 Smart Group Criteria - Parentheses

AKuzenkov
New Contributor III

What do the parentheses do when adding criteria to a smart group?

What's an example of where you would want them and where you would not?

1 ACCEPTED SOLUTION

alexjdale
Valued Contributor III

A quick answer is that it allows you to perform more complicated queries and group criteria together.

Now we can do stuff like:

(A and B) or (C and (D or E))

...knowing the elements nested inside parenthesis are processed as separate units.

Previously, some queries would be impossible or not intuitive to configure. What would "A and B or C and D or E" do without those parenthesis? Which operations would be processed first? Beats me!

View solution in original post

1 REPLY 1

alexjdale
Valued Contributor III

A quick answer is that it allows you to perform more complicated queries and group criteria together.

Now we can do stuff like:

(A and B) or (C and (D or E))

...knowing the elements nested inside parenthesis are processed as separate units.

Previously, some queries would be impossible or not intuitive to configure. What would "A and B or C and D or E" do without those parenthesis? Which operations would be processed first? Beats me!