> forEachTiddler where 'tiddler.tags.containsAll(["Books","Read"]) &&
> tiddler.tags.DoesNotContainAny(["Europe","Sports"])'
The 'where' clause in the <<forEachTiddler>> macro is actually just a
javascript-based boolean conditional test that is applied to each
tiddler in the document. Thus, you can use the "!" ('not') operator
combined with the 'containsAny()' test method, like this:
<<forEachTiddler where 'tiddler.tags.containsAll(["Books","Read"]) && !
tiddler.tags.containsAny(["Europe","Sports"])' ... >>
Note: depending upon your intended use, you might find the syntax of
this plugin to be a bit easier:
http://www.TiddlyTools.com/#MatchTagsPlugin
When installed, the plugin extends the TW core's <<list filter [tag
[...]]>> feature, so you can use it like this:
<<list filter [tag[Books and Read and not (Europe or Sports)]]>>
It also adds a new <<matchTags>> macro that provides a variety of
different input modes and and ouput formatting options. For example,
the following will create a popup list of matching tiddlers:
<<matchTags popup Books and Read and not (Europe or Sports)>>
enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---