Support Response : bzowk wrote:
I do have a question about the operators, though. What I'm trying to do is create a filter which lists media with a 5.0 score or better, but don't know what operator to use.
<rule field="score" operator="greaterthan">4.9</rule>
bzowk wrote:
Also, is it possible to use "any", "all", etc in the same rule? Ideally, I want a rule which lists all "scifi" genre which has a score of 5.0 - 10.0. I created a rule file which had the genre rule in it as well as an individual rule line for 5.0 - 10.0 (50 lines) and "any", but it ended up showing media which belonged to that genre AND all media from all genres which had a 5.0+ score.
Type
any means that any of the rules need to be satisfied. You meant
all instead, such as:
Code:
<?xml version="1.0"?>
<rulelist>
<name>Good Rated Sci-Fi</name>
<match>all</match>
<type>filter</type>
<rules>
<rule field="genre" operator="contains">sci</rule>
<rule field="score" operator="greaterthan">4.9</rule>
</rules>
</rulelist>