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/789d067e-1734-414f-971e-4eb0422dab47%40googlegroups.com.

