Thanks everyone, useful information. @PMario - I'll take a look at that and: 1) Try and apply the example as written for a single tag to see if I can get it working 2) Try and extend to two tags
It looks like it should be straightforward enough and I'll be able to add a new tool to my belt. Thanks John On Monday, 26 July 2021 at 06:44:43 UTC+1 PMario wrote: > UUPS, > I didn't read your OP good enough, because my solution works for 1 tag > only. ... BUT it should contain enough info to figure out, how the filter > should look like for your problem;) > -m > > On Monday, July 26, 2021 at 7:39:12 AM UTC+2 PMario wrote: > >> Hi, >> >> In TW you sometimes need to think different, because filter sets can >> dynamically change as you found out. >> >> <$set name="condition" value="[tags[]count[]match[1]]"> >> <$list filter="[tag[a]filter<condition>]"/> >> </$set> >> >> In this example, the first filter tag[a] gets all tiddlers that have a >> tag a. >> The second condition is >> - get all tags of that tiddler, >> - count them and >> - compare to 1" ... So "a" is the only tag because of the initial >> filter -> \o/ >> >> The filter operator applies the condition to the current tiddler and >> returns its title, if the condition is not empty. >> >> See: >> https://tiddlywiki.com/#tags%20Operator:%5B%5Btags%20Operator%5D%5D%20%5B%5Bcount%20Operator%5D%5D%20%5B%5Bmatch%20Operator%5D%5D%20%5B%5Bfilter%20Operator%5D%5D%20%5B%5BFilter%20Operators%5D%5D >> >> have fun! >> mario >> > -- 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/29cb5f0d-c44e-49ac-abfd-97f967bed987n%40googlegroups.com.

