Cade,
Sub filters need to be full syntactically correct filters in their own right, in fact this may allow you to test them independently of your larger combined filter.
Subfilters that respond to the filters so far are appended as such
restoffilter]subfilter<filter-varname>] <= end of run
restoffilter]subfilter<filter-varname>nextoperator[] <= continue run
[subfilter<filter-varname>] <= a run on its own which generates its output along with other runs
However rather than make large compound filters I like to break the problem down and build nested lists with each handling part of the filter.
- The advantage here is you can output intermediate results
This snipit shows how one list provides input to another (if you are not making use of the currentTiddler
<$list filter="firstfilter eg get states" variable=each-state>
Show State<<each-state>><br>
<$list filter="[<each-state>get towns" variable=each-town>
Show Town <<each-town>><br>
</$list>
</$list>
Once you have your complex filter working you can remove the show lines you don't want, and have only the output you intended
- This helps building and debugging, now and subsequently.
- This helps reuse and repurposing because it is more self documenting than a single filter
- In very few cases is this nesting has much greater overheads than a single filter.
- Combine this with a few subfilters that are also reusable, and can be defined in tiddlers using the $:/tags/Macro tag
In time you will also learn how to write such nested lists to once working convert it to one long single filter if you want.
Such filters can be placed in a filter field of a tiddler tagged $:/tags/Filter and a few other settings to make the filter available in the advanced search filter drop down;
Then you then can also use filter={{tiddlername!!filter}} or filter="[{tiddlername!!filter}] in your filter parameter.
Regards
Tony