Mohammad, Another method discovered recently is using the $view widget https://tiddlywiki.com/#ViewWidget
The content of the <$view> widget is displayed if the field or property is missing or empty. This means if you want to display say the text or title field of a named tiddler, and no such text or title field exists the content will be displayed such that; <$view tiddler=<<tiddlername>> field=title> Display when not exist, like a button to create it using a template </$view> So if the tiddler exists it will display its name, if not it can display the code to create it. - I wish the view widget could also "View" variables as well. Issue raised https://github.com/Jermolene/TiddlyWiki5/issues/3789 Regards Tony On Thursday, February 21, 2019 at 6:22:51 PM UTC+11, 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/1e2d0b01-e51b-46ec-8c0b-9f1504526fb3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

