\define mymacro()
<$set name="result" value="Hi Bob"/>
<result>
$result$
$(result)$
\end
<<mymacro>>$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
\define mymacro()
<$set name="result" value="Hi Bob">
<<result>>
</$set>
\end
<<mymacro>>\define mymacro()
<$set name="result" value="Hi Bob">
<<result>>
$(result)$
</$set>
\end
<$set name="result" value="Hi Doug">
<<mymacro>>
</$set>Hi Bob Hi Doug
(You must be from the Great White North, eh?)
\define myothermacro(gddayeh)
$gddayeh$
\end
\define mymacro()
<$set name="result" value="Hi Bob">
<<myothermacro "<<result>>" >>
</$set>
\end
<<mymacro>>\define myothermacro(gddayeh)
$gddayeh$
\end
\define mymacro()
<$set name="result" value="Hi Bob">
<$macrocall $name=myothermacro gddayeh=<<result>> />
</$set>
\end
<<mymacro>>