I've realized on another thread that I must have a fundamental 
misunderstanding of the set widget.  Isn't it supposed to set a variable 
for use elsewhere?

\define mymacro()
<$set name="result" value="Hi Bob"/>
<result>
$result$
$(result)$
\end

<<mymacro>>

When I run the above macro, all I get is 

$result$


I also tried it like this
<$set name="result" text="Hi Bob"/>

but got the same results.

I have got set widget to work in situations like this:
<$list filter="[<result>getindex[$testname$]]">

but not sure what the distinction is there (set variables only work inside 
widgets?)


Anyway, is there a correct way to get it to work the way I need? or perhaps 
is there an alternate widget to use?


(My ultimate goal is to get a result from inside one macro and transfer it 
to another macro for further processing.)

Thanks,
Dave




-- 
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/72d1f679-0001-4c58-876e-32caa25fc9bc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to