Mark,
 When filter is missing or NOT empty value is used
 So, when filter is given but empty, I expect the emptyValue should be in
effect!

--Mohammad


Best wishes
Mohammad


On Thu, Jan 23, 2020 at 10:13 PM 'Mark S.' via TiddlyWiki <
[email protected]> wrote:

> My thinking is that you either use "filter" and "value", or you use
> "value" and "emptyValue". But when you
> try mixing both approaches you get your typical cats sleeping with dogs
> scenario.
>
> On Thursday, January 23, 2020 at 9:03:25 AM UTC-8, Mohammad wrote:
>>
>> In https://tiddlywiki.com/
>>
>> create a tiddler with below contents
>>
>> <$set name=Test filter="[tag[aa]]" value="YES">
>> <<Test>>
>> </$set>
>>
>> It returns YES
>>
>> but this
>>
>>
>> <$set name=Test filter="[tag[aa]]" value="yes" emptyValue="no">
>> <<Test>>
>> </$set>
>>
>>
>> return NO
>>
>> There is no tiddler tagged with aa. What is going wrong? why emptyValue
>> changes the result here?
>>
>> You can also try the example in
>> https://tiddlywiki.com/prerelease/#SetWidget
>>
>> <$set name="myVariable" filter="[all[current]field:title[myMagicTitle]]" 
>> value="It's magic" emptyValue="It's not magic">
>> <$text text=<<myVariable>>/>
>> </$set>
>>
>>
>> Put this in a tiddler has no myMagicTitle  word in title remove
>> emptyValue, you get different results!
>>
>>
>> --Mohammad
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/98f845d6-6355-41b2-9d64-4ac8aa663cbb%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/98f845d6-6355-41b2-9d64-4ac8aa663cbb%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAAV1gMDvMvLMxQ%2BKDPYgxKMnRe8J9%2Bnyv%3DZ_4%3Dy8VkiZ2kbJYg%40mail.gmail.com.

Reply via email to