Mohammad As mentioned by you we can use the emptyMessage to do the else, the cleanest way I have come up with is to use macro definitions to respond.
\define action-yes() Yes \end \define action-no() No \end <$list filter="[go[yes]]" emptyMessage=<<action-no>> ><<action-yes>></$list> Since the filter needs to result in one of two outcomes if one was to do a filter that could have zero or many results the filter can be extended with the limit[1] <$list filter="[fields[]prefix[menu-]limit[1]]" emptyMessage=<<action-no>> ><<action-yes>></$list> In the above (untested) the result will be "<<action-yes>>" if there are one or more fields in the wiki with a prefix of menu- <$list filter="[is[current]fields[]prefix[menu-]limit[1]]" emptyMessage=< <action-no>> ><<action-yes>></$list> In the above (untested) the result will be "<<action-yes>>" if there are one or more fields in the CurrentTiddlerwith a prefix of menu- What the above makes me think is with a clone and minor re-write of the Listwidge we could have something like this <$if "[go[yes]]" then=<<action-yes>> else=<<action-no>>/> <!--THIS IS A FICTION--> Regards Tony On Tuesday, October 2, 2018 at 11:25:39 PM UTC+10, Mohammad wrote: > > Very good example Tony, I used your point and wrote something like this > > > <$list filter="[is[current]my-field[true]]" variable=null> > Show the true part! > </$list> > <$list filter="[is[current]!my-field[true]]" variable=null> > Show the false part! > </$list> > > > Of course, it possible to do it by emptyMessage, but I personal like to > have something simple and clear in the core! > > Cheers > 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 [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/e39326fb-b42f-4d95-be2e-8b6e91cfe20c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

