Hi Serena, tiddler.tags is an array an returns all tags. if you try tiddler.tags[0] it would return "book". The short and 'dirty' way would be to have the tag [[Leo Tolstoy]] at the first position at the tags and reference it with tiddler.tags[0].
BUT... When ever someone else uses your TW you will have to explain why it will not work as desired, if [[the author]] is not at the right index of the array. regards Mario On 28 Feb., 05:17, Serena <[email protected]> wrote: > I'm trying to create a write clause using forEachTiddler that will > write the tags of the resulting tiddlers, but only those tags that > begin with upper case letters, for example: > > I have tiddler named "War and Peace" tagged as "book", "toRead" & "Leo > Tolstoy". I want the results to show: > > "War and Peace by Leo Tolstoy" using something like this: > > <<forEachTiddler where 'tiddler.tags.contains("book")' write > '"[["+tiddler.title+"]] by "+tiddler.tags'>> > > except that this currently results in "War and Peace by book, toRead, > Leo Tolstoy". Any suggestions on how to get this to work? Thanks in > advance! -- 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.

