On Saturday, July 28, 2018 at 9:00:04 AM UTC-7, Laurent Bonet wrote: > > I would like to write a macro that return: > - the "caption" field of a tiddler if this field has a value > - the title of the tiddler if this tiddler doesnt have a caption field >
https://tiddlywiki.com/#ViewWidget As per documentation: "The content of the <$view> widget is displayed if the field or property is missing or empty." Thus: <$view field="caption"> <$view field="title"></$view> </$view> enjoy, -e Eric Shulman TiddlyTools.com: "Small Tools for Big Ideas!" (tm) InsideTiddlyWiki: The Missing Manuals -- 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/ec935021-9912-465b-b966-8916dd2b8b5f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

