The triple brace notation indicates that the filter inside the braces will 
be evaluated. BUT, they don't get evaluated if they are in strings. Which 
yours are. So in each of yours, the {{{ and }}} get evaluated as if they 
were tiddler names.

More to the point, you don't use triple brace notation within filters -- 
you don't need them.

Only the 2nd filter is correct. The 4th filter is not only incorrect 
because of the triple braces, it is incorrect because it is missing a left 
square bracket in front of "enlist". 

I think you're trying to count the number of tabs. I guess the way to do 
this would be to give each tab tiddler a tag, like "mytab".

Then your tab macro would look like

<<tabs "[tag[mytab]]" "[[recall]]" "$:/state/tab/deck">>

and you could count the tabs like

<$count filter="[tag[mytab]]" />




On Monday, December 28, 2020 at 9:35:21 PM UTC-8 [email protected] wrote:

> """
> doing the following in tiddlywiki.com gives some results i wasn't 
> expecting, could anyone please show me what i am doing wrong?
>
> <<tabs "[[recall]] [[lyrics]] [[tips]]" "[[recall]]" "$:/state/tab/deck">>
>
> <$count filter="{{{ [tag{$:/state/tab/deck}] }}}"/>
>
> <$count filter="[tag[recall]]"/>
>
> <$count filter="{{{ [!is[current]tag{$:/state/tab/deck}]] }}}"/>
>
> <$count filter="{{{ enlist[tag{$:/state/tab/deck}] }}}"/>
>
> why does the filtered transclusion produce a non-zero count? there are no 
> tiddlers tagged "recall" in the current tiddlywiki, so does the 
> transclusion do something different to what i am expecting (i.e. a match to 
> the second filter?)
> the third filter leads me to think the current tiddler is included 
> regardless, but what about the remaining count of 1?
> how does enlist then add another to the count in the fourth filter?
> """
>
> warmest wishes, maki
>

-- 
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/546a52f4-61af-483c-8f28-378bf296b6can%40googlegroups.com.

Reply via email to