Nope.
Also tried with
        'store.setTiddlerTag(tiddler.title,true,"bar")+" "'
and with
        '" "+store.setTiddlerTag(tiddler.title,true,"bar")'

Neither putting it in the bigger forEach context suggested by cmari
works (results in 'undefined' in the middle of the rendered table)
i.e;

<<forEachTiddler
        where
        'tiddler.tags.containsAll(["foo"])'
        write
        '"|<<checkbox [["+tiddler.title+"|sometag]]$))|[["+tiddler.title+"]]|
[["+tiddler.tags.join("]], [[")+"]]|\n"+store.setTiddlerTag
(tiddler.title,true,"bar")'
        begin
        '"|Add sometag|Title|Tags|h\n"'
>>


While at this (a question that perhaps better is asked Mr.Borkowski?);
Is everything in the 'write' executed for each found matching tiddler?
I.e is the setTiddlerTag executed multiple times from this? Maybe it
is more economical to run the setTiddlerTag as a separate forEach?...


/Mat



On Jan 19, 12:57 am, Eric Shulman <[email protected]> wrote:
> > But, it also leaves an "undefined" in the tiddler where the script is.
>
> store.setTiddlerTag() does not return a value, so you get "undefined"
> as output when it occurs in the 'write' clause.  To return a blank
> string instead of undefined, try adding an extra ""; following the
> call to setTiddlerTag(), like this:
>
> <<forEachTiddler
>         where
>         'tiddler.tags.containsAll(["foo"])'
>         write
>         'store.setTiddlerTag(tiddler.title,true,"bar");"";'
>
> -e
--~--~---------~--~----~------------~-------~--~----~
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