I think I'm not understanding something essential about access to variables 
vs. params in macros and Wikitext. Suppose in a macro I'm writing I want 
one variable to default to the value of another if it isn't present. I've 
tried to use the SetWidget to make this work, but no matter what I try I 
can't seem to overwrite the parameter value with what I have in the 
<$set...> part. Can you tell what I'm doing wrong?

For a concrete example:

\define mymac(title,label)

<$text text="""Title: $title$"""/>
<br>
<$text text="""Label: $label$"""/>
<br>

<$set name="label" filter="$label$" value="$label$" 
emptyValue="""$title$""">
<$text text="""Title: $title$"""/>
<br>
<$text text="""Label: $label$"""/>
</$set>

\end

<<mymac title:"test" label:"hello">>

-- 
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/4967b40b-da13-4fa2-8347-b7526106bccen%40googlegroups.com.

Reply via email to