Hi Mat, The example you picked is problematic to start, because the count operator will always generate some output (zero is an output).
What you're trying to do is concatenate variables into a string. Whenever that happens, AFAIK, you need to use a macro. You can use <$list> operators kind of to get the if-then thing. You can also use the reveal widget if your comparison value is already in a field or tiddler. It would be great if there was a way to do comparisons like that in one swoop. Maybe someone will post one, but here's what I came up with: \define foo() There are $(filteroutput)$ tiddlers with prefix New <$list filter="[prefix[New]limit[1]]" emptyMessage="There are no tiddlers with prefix New" > <$set name=filteroutput filter="[prefix[New]count[]]" > <<foo>> </$set> </$list> Good luck, Mark On Wednesday, June 21, 2017 at 4:04:48 AM UTC-7, Mat wrote: > > > > <$set name=foo filter="[prefix[New]count[]]" value="There are > $filteroutput$ tiddlers with prefix New" > > <<foo>> > </$set> > > Because SetWidget filters are evaluated I'm guessing there must be *variable > with the filter result* existing somewhere (in the js). > > Is there some way to access this variable so that it can be used in the value > parameter? (Here examplified with the $filteroutput$) > > This would make it very easy to use the SetWidget as an "IF-then" > statement or, if also using emptyValue, an "IF-then-else". Extremely > useful. > > For example > > <$set name=foo filter="..." value=<<macro1>> emptyValue=<<macro2>> > > > ...where the macros thus can use the filter result, and you then access > the final result via <<foo>> > > <:-) > -- 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 [email protected]. To post to this group, send email to [email protected]. 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/8bb6e818-4b9d-4715-8140-814b750ebebf%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

