Hi P,

You can much simplify your codebits. Personally I would do it like
this using named parameters instead of the params array as a whole...

//at the beginning of your handler declare
var tgs,
//get named params
p=paramString.parseParams(null,null,true),
//get include and exclude
inc=getParam(p,'include','').readBracketedList(),
ex=getParam(p,'exclude','').readBracketedList();

//Later...

//Get tags and check them...
tgs=tiddler.tags||[];
if(
        !tgs.containsAny(inc)||
        tgs.containsAny(ex)
)continue;

So your macro would read...

<<myhistory
        include:'"this tag" [[or that]] tag'
        exclude:'excludeHistory'
>>

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