Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dynamic browsing with "is not" condition
20-12-2021, 21:43
Post: #3
RE: Dynamic browsing with "is not" condition
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'.
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 - simbun - 20-12-2021 21:43

Forum Jump:


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