photools.com Community

IMatch Discussion Boards => General Discussion and Questions => Topic started by: tvi55 on April 05, 2018, 02:16:54 PM

Title: File selection using Builder
Post by: tvi55 on April 05, 2018, 02:16:54 PM
From the following category tree I want to select all files which do not belong to any of the subcategories "sample-n", but to the main category "sample" only.

- Sample
- Sample / Sample-1
- Sample / Sample-2
- Sample / Sample-3

Using the Builder, this is possible with the following logic:   

Sample
NOT Sample / Sample-1
NOT Sample / Sample-2
NOT Sample / Sample-3

However, with many subcategories this gets cumbersome. Is there a shortcut possible saying "exclude all files from any of the subcategories"?

An alternative to using the Builder achieving the same result would also be appreciated.
Title: Re: File selection using Builder
Post by: axel.hennig on April 05, 2018, 02:34:30 PM
Hi tvi55,

I think this can be done using "Direct assignments only" (under "Properties"). See attached screenshot.

Axel
Title: Re: File selection using Builder
Post by: Mario on April 05, 2018, 02:46:10 PM
Just use a @CatNoRecurse formula for that. This formula does not consider files in child-categories (similar to the "Direct Files Only" mentioned by Axel above).

The @Builder allows you to quickly combine categories with Boolean operations. But it does not support every advanced features of category formulas. See the IMatch help (search the help index for category formula) for a full list of all available formula expressions.
Title: Re: File selection using Builder
Post by: ubacher on April 05, 2018, 05:26:30 PM
My easy solution would be to display all files and filter for category Sample.
If you use a single + in front of Sample instead of the double ++ you will get your wanted result.