Thanks Eric!

It is really strange while I read tiddlywiki.com more often and check it 
before raise any questions, but I don't see these kind of hints :-) :-)
I need new eyeglasses. :-) 

By the way Tiddlywiki is one of those tools its side rules and grammar 
exceptions are MORE than its grammar rules.

Cheers
Mohammad



On Monday, February 10, 2020 at 1:19:51 PM UTC+3:30, Eric Shulman wrote:
>
> On Monday, February 10, 2020 at 12:59:30 AM UTC-8, Mohammad wrote:
>>
>> <$list filter="[tag[Examples]get[type]] -[[text/vnd.tiddlywiki]]">
>>
>> </$list>
>>
>> It displays
>> text/vnd.tiddlywiki
>> text/vnd.tiddlywiki
>> Why there is two outputs for second $list while as per dominant append 
>> filter concept, if all tiddlers have type text/vnd.tiddlywiki, then second 
>> $list should have no output!
>>
>
> The documentation at https://tiddlywiki.com/#get%20Operator specifically 
> says: 
>
> *Each input title is processed in turn. If the corresponding tiddler 
>> contains field F, and the value of this field is not empty, then its value 
>> is appended to the output.*
>
> *Unlike most other Filter Operators, the selection output by get can 
>> contain duplicates. To avoid duplicates, use each[F]get[F].*
>
>
> Note that this documentation says "its value is appended"... but does 
> *not* say "*dominantly* appended", and then it goes on to explain that 
> this means the output "can contain duplicates". 
>
> For the test case, "[tag[Examples]]", the filter produces 7 matching 
> tiddlers.  However, only 3 of these tiddlers have a specified type of 
> "text/vnd.tiddlywiki".  The rest have no specified type (i.e., the type 
> field is blank).
> Thus, the filter "[tag[Examples]get[type]]" results in 3 copies of 
> "text/vnd.tiddlywiki"... and then adding "-[[text/vnd.tiddlywiki]]" to the 
> filter removes 1 of them, leaving 2 remaining.
>
> Even though this is unlike the behavior of other filters, it IS working as 
> documented.
>
> -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/306ed6e6-15b6-476b-8aa1-09f50003ceb0%40googlegroups.com.

Reply via email to