Add two "list counts" ?

67 views
Skip to first unread message

David SZERMAN

unread,
Mar 4, 2021, 10:37:37 AM3/4/21
to TiddlyWiki

Hello,

I am able to get two counts :
* Number of untagged tiddlers : <$count filter="[untagged[]!prefix[$]]"/>
* Number of tiddlers with a specific tag : <$count filter="[!is[system]tag[A_trier]sort[created]]"/>

Is it possible to get the sum of these both counts ?

<$count filter="[!is[system]tag[A_trier]sort[created]]"/>+<$count filter="[untagged[]!prefix[$]]"/>


Thanks

Mat

unread,
Mar 4, 2021, 11:58:53 AM3/4/21
to TiddlyWiki
You use the add operator [<firstvalue>add<secondvalue>]

But instead of usig the count widget, you use the count filter operator and you set some vars

Basically

<$vars
 a={{{ [!is[system]tag[A_trier]count[]] }}}
 b= ... >
{{{ [<a>add<b> }}}
</$vars>

<:-)

David SZERMAN

unread,
Mar 5, 2021, 9:38:16 AM3/5/21
to TiddlyWiki
It works perfectly, thanks mat
Reply all
Reply to author
Forward
0 new messages