Well, I was wrong, and I was right.
You do need two filter runs, but unfortunately they can't be run in the
same filter widget. AFAIK, there are no tools for grouping runs. The "else"
operator only works on a single run, so you can't use that either.
Here's my solution below. It puts the 2nd check in a macro that gets called
from the first run. Oh, the macro should probably be tweaked to limit it's
output to one tiddler.
-- Mark
\define check2()
<$list filter="[enlist{!!list}] -[enlist<check-list>]" emptyMessage=
"MATCH!">
UNMATCHED
</$list>
\end
<$set name="check-list" filter="[[C A]] [[B B]] [[A C]] ">
<$list filter="[enlist<check-list>] -[enlist{!!list}] +[limit[1]]"
emptyMessage=<<check2>> >
UNMATCHED
</$list>
</$set>
On Monday, February 25, 2019 at 4:23:19 PM UTC-8, S. S. wrote:
>
> Tony,
>
> Trying out Mark's suggestion, I can't understand why this fails :
>
> {{!!list}} = [[C A]] [[A C]] [[B B]] y
> <$set name="check-list" filter="[[C A]] [[B B]] [[A C]] x">
> <$list filter="[enlist<check-list>] -[enlist{!!list}]
> ~[enlist{!!list}] -[enlist<check-list>]" emptyMessage="MATCH">
> NO MATCH
> </$list>
> </$set>
>
> I haven't needed to use the ELSE run prefix ~ before so I tried both ways
> (extra ~[[ brackets ]] around the ~ prefix, and both ways failed:
>
> <$set name="check-list" filter="[[C A]] [[B B]] [[A C]] x">
> <$list filter="[enlist<check-list>] -[enlist{!!list}]
> ~[[enlist{!!list}] -[enlist<check-list>]]" emptyMessage="MATCH">
> NO MATCH
> </$list>
> </$set>
>
> Confused.
>
>
--
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/2d5673d1-6acd-4b02-8701-3caabece3f5f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.