Hey mark,

Good idea. Why doesnt using a reveal and comparing against "0" work? 

Diego

On Saturday, July 28, 2018 at 12:17:18 PM UTC-5, Mark S. wrote:
>
> A filter ending in count[] will never be empty because zero is a number! 
> But (at least in my test) you can subtract out the 0:
>
> <$list filter="[tag<currentTiddler>count[]] -[[0]]" variable=result 
> emptyMessage="none">
>
> Then it will return "none" for the zero count.
>
> -- Mark
>
> On Saturday, July 28, 2018 at 9:18:29 AM UTC-7, Joe Bush wrote:
>>
>> When I use
>>
>> <$list filter="[tag<currentTiddler>count[]]" variable=result 
>> emptyMessage="none">
>> <<result>>
>> </$list>
>>
>> I still get zeroes as the return. I added the empty message and it 
>> doesn't show up, returns 0 instead.
>>
>> On Wednesday, July 25, 2018 at 6:56:31 PM UTC-5, TonyM wrote:
>>>
>>> Joe,
>>>
>>> Try using count as a filter operator on a list
>>>
>>> <$list filter="[yourfilter]count[]" variable=result>
>>> <<result>>
>>> </$list>
>>>
>>> In the above case result will display the count, but nothing will show 
>>> if nothing or 0 items are in the result.
>>>
>>> And you could extend this with the emptyMessage (not what you are asking 
>>> for)
>>>
>>> <$list filter="[yourfilter]count[]" variable=result emptyMessage="none">
>>> <<result>>
>>> </$list>
>>>
>>> Regards
>>> Tony
>>>
>>>
>>>
>>> On Thursday, July 26, 2018 at 8:05:23 AM UTC+10, Joe Bush wrote:
>>>>
>>>> In part of my $list tree I display a $count of the children of a given 
>>>> tiddler. Is there a way to hide or not display the <$count> element if it 
>>>> returns 0?
>>>>
>>>

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c1f0c4ec-69f4-43bf-a0bf-c04944d8015c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to