Mohammad,
I am not so sure how to read your requirement, here are some ideas, I may have it wrong.
I will be honest, I got very confused. Could you give a more extensive real world example eg;
tiddler = person
tag = invited (to the party)
Test 1 = Paid entry fee (required)
Test 2 = Wearing a suit (required)
If just one person has not paid, or wearing a suit then NO PARTY
but are you saying;
Given a Filter that results in a list of tiddlers, return nothing if even one fails to pass a second or third filter?
Your Question seems to ask
[tag[myTag]] has the word xx in their title
OR
[tag[myTag]] has the field myfield
But then you say So the filter is empty if only one input title does not match the criteria.
I would think this we inclusive, To get them into the save filter you need to generate [tag[myTag]] list twice
[tag[myTag]word xx in their title] [tag[myTag]the field myfield]
[tag[myTag]contains:title[xx]] [tag[myTag]has:field[myfield]]
This will generate a list of tiddlers that meet one OR both criteriaThe OR is implied by the space making this two "filter runs"
But perhaps what you are asking is
- The filter is empty if only one input title "[tag[myTag]]" does not match the criteria [tag[myTag]contains:title[xx]] OR [tag[myTag]has:field[myfield]] return nothing
- This means in effect if any (1 or more) tiddlers do NOT match both criteria, return nothing.
If I understand this correctly you are asking
- Give me a list of [tag[myTag]] tiddlers
- Test if any do not meet the criteria
If we ask
We find out how many are eligible
[tag[myTag]] +[contains:title[xx]] +[tag[myTag]has:field[myfield]] +[count[]]
we find out how many passed the criteria
- For all tiddlers [tag[myTag]]
- Include tiddlers that contain title XX AND include field[myfield]
- The result will be a list of complying tiddlers
- +[Count[]] will count them and give us the number that comply
A final comparison to see if the eligible are more than those that comply
Not sure!
Sharing my notes in full should it provide insight.
Regards
Tony