Count tags under the condition of..

45 views
Skip to first unread message

vinvi...@gmail.com

unread,
Dec 13, 2020, 5:20:54 AM12/13/20
to TiddlyWiki
Hello,

This code counts all tags from the current tiddler, but does not count the tag "C".

<$count filter="[all[current]tags[]sort[title]] -[[C]]"/> 

But how can I count the number of tags from the current tiddler referring to all tiddlers with tag "CP"?

Thank you,

Mark S.

unread,
Dec 13, 2020, 10:31:36 AM12/13/20
to TiddlyWiki
If I understand your question, you only want to count the tags that themselves (as tiddlers) are tagged with CP.

This should do that:

<$count filter="[all[current]tags[]]+[tag[CP]]"/>

If that's not what you wanted, you might give an example of your tiddler inputs and desired outputs.

HTH!

vinvindtvin

unread,
Dec 13, 2020, 11:04:19 AM12/13/20
to tiddl...@googlegroups.com
Yes, thank you!

-------- Oorspronkelijk bericht --------
Van: "'Mark S.' via TiddlyWiki" <tiddl...@googlegroups.com>
Datum: 13-12-20 16:31 (GMT+01:00)
Aan: TiddlyWiki <tiddl...@googlegroups.com>
Onderwerp: [tw5] Re: Count tags under the condition of..

--
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 tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/bc20aa4a-98c4-4c1f-ae7f-fbede3efe008n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages