The reason is you have both part empty so both part returns the whole list 
of tiddlers and negative sign cause all-all = nothing

1. create those temp tiddler
2. put something in them
3. run the code
4. now empty the negsearch tiddler
5. run again
6. it works

Your mistake is here you think if you put Mark and Mathew like
Mark Mathew

Then your search will find tiddlers has Mark OR Mathew, but your code 
search for composition "Mark Mathew"
 Furthermore if you use [search[]] TW returns all tiddlers! When you have 
empty negsearch you return all tiddlers.



Use list field or first convert your text to a list of tiddlers.




On Friday, December 13, 2019 at 5:36:29 AM UTC+3:30, Stephen Kimmel wrote:
>
> Unfortunately, if $:/temp/negsearch doesn't exist or the text field is 
> blank, then this gives me nothing at all.  That's the problem I'm trying to 
> avoid. I've tried with a "missing" operator and an "else" operator and that 
> doesn't seem to work either.
>
>
>
> On Thursday, December 12, 2019 at 1:29:14 PM UTC-6, Eric Shulman wrote:
>>
>> If I understand your goal correctly, you want to get one list that 
>> matches a certain filter... and then remove some of the items that match 
>> another filter.
>>
>> To do that, use separate filter "runs", where the second filter has a 
>> leading "-" (minus), like this:
>>
>> <$list filter="[search{$:/temp/possearch}] -[search{$:/temp/negsearch}]">
>>    ... stuff here ...
>> </$list>
>>
>> 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/292072eb-0644-496e-a77f-4f51866945ca%40googlegroups.com.

Reply via email to