On Monday, July 26, 2021 at 5:07:07 AM UTC-7 TW Tones wrote:
> This method mentioned later for setting variables to use in edit-list may
> be better (although untested)
> <$vars
> field={{{ [[$field$]is[blank]then<fieldname>] }}}
> paramname={{{ [[$paramname$]is[blank]then<varname>] }}}
> >
>
The following handles two levels of fallback:
1. if the param is passed to the macro
2. else if the param is set as a variable
3. else use a default value
For example, the field value should default to "text" if not provided by
either param or variable:
<$vars field={{{ [[$field$]!is[blank]else<field>!is[blank]else[text]] }}}>
-e
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/e384ebb8-d4aa-4501-9045-4455b1bfec6en%40googlegroups.com.