On Friday, May 15, 2020 at 8:57:11 AM UTC-7, David wrote: > > With you guys' help, i have a good filter going that shows "Packed" items. > I'm inside another <ListWidget> that get a list of the Contexts. That's > where the "thisContext" var comes from. > !!! <<thisContext>> > > <$list filter="[<thisContext>listed[tags]tag[PackingItem]tag[Packed]]" > variable="item"> > <<item>> > </$list> > What I'd like to do is only show that Header/!!! text when there are some > results to see from the list that's right below it. >
Surround the header with the same filter with "limit[1]" added to it, like this: <$list filter="[<thisContext>listed[tags]tag[PackingItem]tag[Packed]limit[1]]" variable="item"> !!! <<thisContext>> </$list> <$list filter="[<thisContext>listed[tags]tag[PackingItem]tag[Packed]]" variable="item"> <<item>> </$list> What it does: The limit[1] operator is used to test if there is at least 1 matching result. If there are no results, the content of the <$list> widget is skipped. If there is more than 1 result, the content is displayed only once. Note that the blank line preceding the header line is important, as the "!!!" heading syntax is only permitted in "block mode" (vs. "inline mode"). Without the blank line, the "!!!" will be displayed "inline" as literal text. enjoy, -e -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/a0976e7e-5f6a-47ff-91d7-d2a266585de3%40googlegroups.com.