Mohammad,

the Larger point is all filters act on a set of titles, the default is as 
Eric said, is all[tiddlers]

When I first read your examples, I immediately saw you have not defined the 
scope of this set and it would thus default to all[tiddlers]

You no doubt often start a filter with all[current], !is[system] etc... 
which is the first step to limit the size of the set of titles to be used 
by the filter.

I feel it is this concept which may need to be documented, rather than all 
the possible "invalid" cases one could write, like you adding 0 to every 
title.

Regards
Tony


On Sunday, January 5, 2020 at 7:17:59 AM UTC+11, Mohammad wrote:
>
> Hello Eric,
>
> On Saturday, January 4, 2020 at 11:41:25 PM UTC+3:30, Eric Shulman wrote:
>>
>> On Saturday, January 4, 2020 at 11:33:24 AM UTC-8, Mohammad wrote:
>>>
>>> In Tiddlywiki.com trye below examples:
>>>
>>>
>>>    - <$list filter="[add[0]]"/>
>>>    - <$list filter="[multiply[0]]"/>
>>>    
>>>
>>> Is this an small issue?
>>>
>>
>> What is happening is that, by default, a filter starts with an implied 
>> "all[tiddlers]".
>>
>
> That is the reason!
>  
>
>> Non-numeric list items (such as tiddler titles) have a value of 0.
>> At TiddlyWiki.com, there are 1304 non-shadow tiddlers.  
>> Thus, each of the above filters is producing 1304 numeric results.
>>
>> This seems consistent and correct to me.  What do you want the results to 
>> be?
>>
>
> With respect to part one, this is understandable. 
>
> NOT sure if it is already in documentation! Worth to be added.
>
>>
>> -e
>>
>>

-- 
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/8aaefff6-fb0f-4e01-81f6-376fe606689f%40googlegroups.com.

Reply via email to