Try this:

\define myStateTid2() """$:/state/$(currentTiddler)$"""

\define buttontest1()
    <$button set=$(myStateTid)$ setTo="edit1">Press1</$button>
\end

\define buttontest2()
    <$button set=<<myStateTid>> setTo="edit2">Press2</$button>
\end

<<myStateTid2>>

<$set name="myStateTid" value=<<myStateTid2>>>

<<myStateTid>>

<<buttontest1>>

<<buttontest2>>

</$set>

On Thu, Aug 10, 2017 at 10:15 AM, <mystik...@gmail.com> wrote:

> I thought i had finally wrapped my head around the difference between
> $var$ and $(var)$, so i went to test it.
> Below is my test, and I am at a complete loss for why buttontest1 renders
> the markup instead of the button, and why buttontest2, when pressed,
> creates a tiddler that is the exact markup of <<myStateTid>>.
> While calling <<myStateTid>> by itself renders as expected.
>
> Please, someone explain this to me.. perhaps using small words. :)
>
>
>
> \define myStateTid() """$:/state/$(currentTiddler)$"""
>
> \define buttontest1()
>     <$button set="$(myStateTid)$" setTo="edit">Press1</$button>
> \end
>
> \define buttontest2()
>     <$button set=<<myStateTid>> setTo="edit">Press2</$button>
> \end
>
>
> <<buttontest1>>
> <<buttontest2>>
>
> --
> 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 tiddlywiki+unsubscr...@googlegroups.com.
> To post to this group, send email to tiddlywiki@googlegroups.com.
> 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/045ac19a-8c0a-43b4-ab5b-70eb555c44a0%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/045ac19a-8c0a-43b4-ab5b-70eb555c44a0%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
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/CAJ1vdSSxFhFg4NdSnuju6ENomsf7B%3DxOpZM_gK6D%3DRxjocB0Mg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to