I'm having trouble getting the right pictures in the smart collection based on my conditions...perhaps you can help.






Show me all Bananas and Show me all Oranges, but only if either of them contain either Apples or Pears.

Very confusing. I keep getting either too many images, or zero images.

  • \$\begingroup\$ Hi Jon, interesting question, I can imagine it's a bit of a head scratcher. Would you mind sharing what you've tried so far? I. e. what conditions gave you too many or zero images? \$\endgroup\$ Nov 1, 2020 at 21:36
  • \$\begingroup\$ I have no solution to the technical issue. But as far as the logic is concerned, the baskets with bananas and oranges shouldn't contain any apples or pears, so the result should be zero. \$\endgroup\$
    – xiota
    Nov 2, 2020 at 3:13
  • \$\begingroup\$ The logic is ((B&&(A||P) || (O&&(A||P)) but I've no clue how to translate that for Lr. \$\endgroup\$
    – Tetsujin
    Nov 2, 2020 at 7:42
  • \$\begingroup\$ "How can I create a Lightroom Smart Collection with multiple and/or conditions?" ??- Is it quicker to Los Angles or by plane? \$\endgroup\$
    – Alaska Man
    Nov 2, 2020 at 19:46
  • \$\begingroup\$ Lol...what's longer? A rope? \$\endgroup\$ Nov 3, 2020 at 5:30

1 Answer 1



I think I found the correct rules:

enter image description here

The trick is in creating two subgroups, one for bananas and one for oranges and then creating sub-subgroups for those two subgroups.

You can get subgroups by holding alt (on a Mac) and then clicking the plus sign + (which turns into a pound sign # when holding alt).
This creates a new subrule, allowing you to set the All/Any of the following are true dropdown for that subgroup only.

Importing rules

I've exported the smart collection rules here. To get that back in your LR as a smart collection, follow these steps:

  1. Copy the text from the link into a text file
  2. Change the extension from .txt to .lrsmcol
  3. In LR, right click in the Collections panel and click Import Smart Collection Settings....

enter image description here

  1. Select the .lrsmcol file from step 2.

This should re-create the smart collection shown in the top screenshot.

  • \$\begingroup\$ Yup, that's the practical translation of my logic comment above. Nice find. \$\endgroup\$
    – Tetsujin
    Nov 2, 2020 at 11:39
  • \$\begingroup\$ Thanks! I'll give it a go. \$\endgroup\$ Nov 3, 2020 at 5:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.