Hubert, I discovered the following by trial that may be helpful
has[fieldname] returns tiddlers that have non-blank fields named fieldname has:field[fieldname] returns tiddlers that have blank and non-blank fields named fieldname List can be addressed as a field above as can tags, but list also has all the list ops handling available just as tags is just a field but has all the tag handling features available So has:field[list] will show all tiddlers with a list field and if you then get[list] you can return the value in the field "list" and when empty this will trigger the emptyMessage on the <$list widget. I hope this helps Tony On Wednesday, June 20, 2018 at 9:14:22 PM UTC+10, Hubert wrote: > > Hi, > > I'm trying to find a way to specifically check whether the current tiddler > has a list field with no value. > > I've found this in the documentation but the below filter does not seem to > return any relevant tiddlers: > > <$list filter="[<currentTiddler>has:list[emptyfield]]"> > > I'm not quite sure whether emptyfield > <https://tiddlywiki.com/#has%20Operator%20(Examples)> itself is a valid > operator or just a placeholder. > > I've also tried the below filter but I guess that this filter works on the > assumption that the list must exist and it's only assumed to exist if > there's a value assigned to it: > > <$list filter="[<currentTiddler>list[]]"> > > So, again no luck. > > Is there a way to denote the state of emptiness in a filter? :) Or perhaps > there's a better way of solving this without resorting to macro > substitution too much? (I've tried that successfully with emptyValue but it > overcomplicates things a bit). > > Thanks in advance! > -- 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/2216b7d4-d4b4-43c3-b8c7-7f792bdae7a8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

