Tony,
This is how I am looking at it:
If var check-list contains: A
and {!!list} contains: A B
[[A]] -[[A]] -[[B]] = empty
so [enlist<check-list>] -[enlist{!!list}] gives an empty result
This part is working fine.
NEXT
[[A]] [[B]] -[[A]] = [[B]]
[enlist{!!list}] -[enlist<check-list>] should give a NOT EMPTY result, but
it gives an EMPTY result!
The 2nd part of the filter is not evaluating the way I expect it to.
This is what is confusing me.
On Tuesday, February 26, 2019 at 8:09:53 AM UTC+7, TonyM wrote:
>
> S S
>
> What are you trying to do?
>
> ~[enlist{!!list}] is correct
>
> Lets convert to plane language
> filter="[enlist<check-list>] -[enlist{!!list}] ~[enlist{!!list}] -[enlist
> <check-list>]
>
> List each item in check-list, removing those that are in !!list, *If and
> only if the resulting list is now empty* (because they match), list the
> items in !!list, and remove those in check-list, so the result must be
> empty (because we are only here because *If and only if the first
> resulting list is empty*
>
> Regards
> Tony
>
>
> On Tuesday, February 26, 2019 at 11:23:19 AM UTC+11, 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/ff319858-5517-4f36-96e2-bc393c3713aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.