Eris, It makes sense,
Thanks On Friday, July 28, 2017 at 2:04:35 PM UTC+10, Eric Shulman wrote: > > On Thursday, July 27, 2017 at 7:43:27 PM UTC-7, TonyM wrote: >> >> \define subtiddler() <<currentTiddler>> - <<currentTab>> >> > > On Friday, July 28, 2017 at 12:01:26 AM UTC+10, Mark S. wrote: > >> \define fulltitle() $(currentTiddler)$-$(currentTab)$ >> > > > The difference between the first and second example is that the first > syntax simply "returns" the macro content AS IS, with the expectation that > further parsing will be performed to evaluate <<currentTiddler>> and > <<currentTab>> values. This is typically used if the macro output is to be > *rendered* (displayed) directly as wiki content. > > In contrast, the second syntax using $(...variablename...)$ actually > evaluates the variable reference and substitutes the current values before > "returning" the result to the calling syntax. Thus, the second syntax does > not depend upon any further parsing to get the actual values. This is > typically used when the macro output is to be used as a parameter value for > another macro or widget > > Example: > > Suppose that the currentTiddler value is "SomeTiddler" and the currentTab > value is "SomeTab". > > The output of the first macro is literally, "<<currentTiddler>> - > <<currentTab>>", leaving any evaluation and replacement to be done later, > while the output of the second macro is literally "SomeTiddler - SomeTab" > (i.e., the macro processing does the evaluation and replacement immediately > and the result is then used as the value of the parameter in the <$tiddler> > widget. > > I hope this makes sense. > > 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/53528adb-1baf-4899-88e7-5b442e057afc%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

