It looks like this is the intended behavior. You don't specify what would 
take the value's place if the filter is empty so it defaults to the value 
anyways. If you want it to show nothing when the filter is empty just do 
emptyValue=""



On Thursday, January 23, 2020 at 11:03:25 AM UTC-6, 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/761601db-d90d-446f-87f4-40e4bf6904f8%40googlegroups.com.

Reply via email to