Hello:

I want to use fET to generate a list of tiddlers that match any of an
array of tiddler tags.

The hardcoded example below using (in this case) three tags works
fine.

    <<forEachTiddler where
'tiddler.tags.containsAny(["basic","kicks","termsA2G"])'

Rather than provide a hardcoded list of tags, what I'd prefer to do is
to use a string parameter for a tiddler macro that can be converted to
an array of tags. Maybe something like the following (where $1 is the
parameter that is passed to the tiddler macro):

    <<forEachTiddler where
'tiddler.tags.containsAny("$1".readBracketedList())'

with the call to the tiddler macro as

    <<tiddler ListTiddlers with: [["basic", "kicks" ,"termsA2G"]]>>

This doesn't work.
The error message is <<forEachTiddler ...>>: SyntaxError: missing )
after argument list

It works with a simple string, for example
    <<tiddler ListTiddlers with: "basic">>

Is there another way to define the $1 input string or to modify the
input to containsAny to make this work?

Thanks
Steve

-- 
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.

Reply via email to