Filter: True if tiddler exists as either tid or shadow.

44 views
Skip to first unread message

Mat

unread,
Apr 20, 2021, 4:53:56 AM4/20/21
to TiddlyWiki
Ehm... I must be missing something very obvious:

How can I tell if the filter output thus far exists at all, i.e regardeless if it is a tiddler or a shadow?

For example
...is[tiddler+shadow] is an invalid oparand for the is operator

Maybe there is some way to tell if the filter output thus far is empty? I was thinking maybe is[blank] is intended for this but in that case {{{ "" +[is[blank]] }}} should return true or something similar (right?), but there is no output.

Ideas?

<:-)






PMario

unread,
Apr 20, 2021, 6:18:50 AM4/20/21
to TiddlyWiki
Hi,
eg: [[$:/plugins/tiddlywiki/browser-sniff/readme]get[title]] will return a title if it exists as shadow or tiddler
or: [[test]get[title]then[yes]else[no]]  will tell you if the test tiddler exists

-mario

Mat

unread,
Apr 20, 2021, 6:38:30 AM4/20/21
to TiddlyWiki
I was indeed missing something obvious! ;-)

Thanks PMario!

<:-)

Reply all
Reply to author
Forward
0 new messages