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/4174277e-bf17-4e9e-ab5b-ff806733f92an%40googlegroups.com.

Reply via email to