Filter 'not'


#1

How to I set the filter to show all files /not/ matching an expression?


#2

There's a check box "invert"


#3

Thanks... but unavailable I find in any version with a working %_counter%, essential to me :frowning:


#4

I'm sure in one version there was an invert option on the filter bar - cannot see it now, using version 2.46a.
Maybe I cannot see the wood from the trees.
Thanks


#5

The filter system has changed and it's been removed.


#6

write the positive filter like
%artist% IS Beatles
and then add a NOT
NOT %artist% IS Beatles

(all keywords in capitals)
if you want to exclude 2 criteria:
NOT %artist% IS Beatles OR NOT %genre% is Rock


#7

Indeed. Disappointing. One should not have to edit the query string just to see the inverse.


#8

Yes, clicking on an button seems to be quicker than writing the word "NOT".
But take into account, that at first the filter expression has to be written by hand, then going over to the mouse and search the button and click it will cost more time and circumstances than modifying the filter command line directly by hand and keyboard.

This is a filter expression ...
(%ARTIST% IS "Kinks") OR (%ALBUM% IS "Black")
... which gives all tracks containing either Artist "Kinks" or Album "Black".

To invers the filter simply write ...
NOT ((%ARTIST% IS "Kinks") OR (%ALBUM% IS "Black"))
... which is equivalent to the filter expression ...
NOT (%ARTIST% IS "Kinks") AND NOT (%ALBUM% IS "Black")
... which gives all tracks containing other Artist than "Kinks" and other Album than "Black".

To negate the previous filter expression, simply write ...
NOT (NOT (%ARTIST% IS "Kinks") AND NOT (%ALBUM% IS "Black"))
... which is equivalent to the filter expression ...
(%ARTIST% IS "Kinks") OR (%ALBUM% IS "Black")

The filter expression language provides the user more flexibility than a simple button can ever do.

DD.20100912.1400.CEST


#9

Yes, clicking on an button seems to be quicker than writing the word "NOT".

... and two brackets.

But take into account, ... going over to the mouse and search the button and
click it will cost more time and circumstances than modifying the filter command line

Only on a program that fails to provide a key command for the NOT button.