Added to TW-Scripts. On Thursday, February 21, 2019 at 10:52:51 AM UTC+3:30, Mal wrote: > > Mohammad, > > >> So, for checking if a title is an existing tiddler what can I do >> >> [!is[tiddler]] [is[missing]] [has[title]] >> >> I think you can use any of these to test if a tiddler already exists. > When I put [[my tiddler title]!is[tiddler]] into Advanced Search/Filter, I > get the output "my tiddler title" and, when I then create a tiddler with > this title, I get no output. This is all as expected according to the > documentation for the "is" Operator. Using "is[missing]" produces the same > result. Also, "!has[title]" or "!has[text]" seem to work just as well, > although I think the first two are easier to interpret, so make the code a > bit more readable. > > Note that "is[tiddler]" and "is[missing]" treat shadow tiddlers as though > they don't exist. Which is OK because it is reasonable that you might want > to create a tiddler to overwrite a shadow tiddler. On the other hand, > "has[title]" and "has[text]" don't ignore shadow tiddlers, so you need to > decide which option suits your application. > > Regards, > > Mal > >
-- 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 post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/1828e772-2da3-40bd-bde2-2eba66876830%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

