{
"xx": "",
"yy": "hello"
}
<$list filter="[[dataTid]getindex[xx]is[blank]]" emptyMessage="the index is NOT blank">
The index is BLANK
</$list>
So,One should be very cautious to use is[blank]!
--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/c7fc0f81-fc26-4ebf-8ef8-f12e84d37b1f%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddl...@googlegroups.com.
I assumed the below dataTiddler returns zero length string, but now I understood it idoes not! The value of xx is missing!
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/ab836157-5364-484e-8a4c-26b7e4c55bb0%40googlegroups.com.
Hi MohammadI assumed the below dataTiddler returns zero length string, but now I understood it idoes not! The value of xx is missing!Indeed, the getindex operator and the get operator both work that way, the great thing is that it lets you use the else[] operator to provide a fallback value:[getindex[xx]else[defaultvalue]match[targetvalue]]
Best wishesJeremy
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/ab836157-5364-484e-8a4c-26b7e4c55bb0%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddl...@googlegroups.com.