Post Reply 
Dynamic browsing with "is not" condition
27-12-2021, 09:09
Post: #5
RE: Dynamic browsing with "is not" condition
(20-12-2021 21:43)simbun Wrote:  You could always use tagUpdate.

There's a number of examples in the forum but not one that I could find that uses the new tag value .default={'String'} option.

/path/to/tagUpdate.txt
Code:
@COMPOSER=Beethoven
+EXCLUDEBEETHOVEN=1

Server.indexTags: ExcludeBeethoven=0:Exclude Beethoven
Server.tagValue: ExcludeBeethoven.default={'0'}
Advanced.tagUpdate: /path/to/tagUpdate.txt

With the tagUpdate instructions you're creating a new tag (internally to MinimServer) called EXCLUDEBEETHOVEN with a value of 1 for all files that have a COMPOSER equal to Beethoven.

ExcludeBeethoven.default={'0'} then creates a tag called EXCLUDEBEETHOVEN and populates it with 0 for all the files that don't already have that tag (every file that doesn't have COMPOSER=Beethoven).

Finally the indexTags expression creates a filter based on the value 0 from ExcludeBeethoven and calls the index 'Exclude Beethoven'.

The method you have shown allows me to browse for the “Exclude Beethoven" condition from the composer.
This method is time-consuming to deal with a large number of "is not" conditions because it has to be created for each specific value.
However, it is very useful as it is enough for me now if I can create a minimum number of "is not" conditions.
Thank you very much for the information.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Dynamic browsing with "is not" condition - yaslam - 27-12-2021 09:09

Forum Jump:


User(s) browsing this thread: 1 Guest(s)