I have a small macro to sweep a list of tiddlers from first to last Here parent is a tag name some tiddlers has been tagged with. *The following code works* Here I have used two set widgets, one to set the emptyValue
\define nextItem(parent) <$set filter='[tag[$parent$]first[]]' name=emptyTid > <$set filter='[tag[$parent$]after{!!temp}]' name=NewIndex emptyValue=<<emptyTid>> > <$action-setfield $tiddler={{!!title}} temp=<<NewIndex>> /> </$set> </$set> \end <$button actions=<<nextItem "myTag">> >Next</$button> But if I directly set the emptyValue and I have used only one set widget. *But it does not work!!* \define nextItem(parent) <$set filter='[tag[$parent$]after{!!temp}]' name=NewIndex emptyValue='[tag[$parent$]first[]]' > <$action-setfield $tiddler={{!!title}} temp=<<NewIndex>> /> </$set> \end <$button actions=<<nextItem "myTag">> >Next</$button> What is the problem? Why I have to use two set widegets? /Mohammad -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/b4d6080c-3bcb-4d9a-a34b-421def0a6d82%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.