"fil2" was missing a right square bracket. In addition, you're attempting to pass a filter to a filter. You can do this if you use the subfilter operator. You also need to terminate your text widgets with a final slash (/). So we end up with this:
<$set name="fil1" filter="[tag[tag1]]"> <$set name="fil2" filter="[subfilter<fil1>]+[tag[tag2]]"> <$text text=<<fil1>>/> <$text text=<<fil2>>/> </$set> </$set> On Sunday, January 17, 2021 at 1:13:00 PM UTC-8 [email protected] wrote: > > Hi all, > > I want to store the output of a filter in a variable and use that variable > later in a second filter to narrow the result down, and so on. > > In preparation I made several test tiddlers with both tag1 and tag2 as > tags. Then I tried: > > <$set name="fil1" filter="[tag[tag1]]"> > <$set name="fil2" filter="[<fil1> +[tag[tag2]]"> > <$text text=<<fil1>>> > <$text text=<<fil2>>> > </$set> > </$set> > > The output of fil1 comes out allright, but I can't seem to make fil2 work > (I get either no result at all, 'Missing [' or 'Syntax error'). To be > complete: the test tiddlers have one-word titles. > I believe I tried all possible combinations of square and arrow brackets > in the definition of fil2 but no luck. I also tried putting in another set > statement like this, in order to fiddle a bit more: > > <$set name="fil1" filter="[tag[tag1]]"> > <$set name="fil3" filter="[<fil1>]">. <!-- and variations. --> > <$set name="fil2" filter="[<fil2> +[tag[tag2]]"> > <$text text=<<fil1>>> > <$text text=<<fil3>>> > <$text text=<<fil2>>> > </$set> > </$set> > > No success. I really am stupefied here. Can someone explain what I should > do and why all this does not work? > > Greetings, > Sjaak > > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/62b921c1-cbc7-4851-8351-24edbbcd60bbn%40googlegroups.com.

