Hi Mark,

Thanks a lot! The mistakes in the square brackets department must have 
crept in during the copy&paste series.
Your solution with subfilter worked perfectly. I still do not understand 
why you cannot just put the variable name fil1 between angle brackets 
inside the filter expression for fil2, because the output of fil1 looks OK 
to me and a series of tiddler names makes up a valid filter expression 
(isn't it?), but hey.

I noticed that if in fil1 you use the value parameter instead of the 
filter, fil2 also works fine (in this simple case, that is, maybe not in 
more complex cases). So that would be:

<$set name="fil1" value="[tag[tag1]]">
<$set name="fil2" filter="[subfilter<fil1>]+[tag[tag2]]">
<$text text=<<fil1>>/>    <!-- this now gives "[tag[tag1]]" -->
<$text text=<<fil2>>/>    <!-- works!  -->
</$set>
</$set>

Thanks again!

Greetings,
Sjaak




On Sunday, January 17, 2021 at 10:43:09 PM UTC+1 Mark S. wrote:

> "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>
>
>
>

-- 
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/ef794fb4-9f4e-4ccb-9f8e-558907a12d08n%40googlegroups.com.

Reply via email to