Here's another attempt that doesn't work: \define s.test.result() <$transclude tiddler='$(mytestname)$' field='$(mytestfield)$'/> <$set name="foo" value="<$transclude tiddler='$(mytestname)$' field='$(mytestfield)$'>"/> foo is <<foo>> or $foo$ or $(foo)$. \end
\define s.test(testname,testfield) <$set name="mytestname" value="$testname$"> <$set name="mytestfield" value="$testfield$"> <$set name="tests" value="testDictionary"><!-- the whole list of all tests --> <$set name="subtest" value=$testfield$><!-- name of the field like "lopp" to put finding into--> <$select tiddler="$testname$" field=<<subtest>>><!-- this selection puts findings into this tiddler and field--> <$list filter="[<tests>getindex[$testname$]]"><!-- gets the list of options for this test--> <$list filter=<<currentTiddler>>><!-- this and next line for breaking up list for selection(?)--> <option value=<<currentTiddler>>><$text text=<<currentTiddler>>/></option> </$list> </$list> </$select> :<<s.test.result>>: </$set> </$set> </$set> </$set> \end I call the first macro from the second, and variables from the first to the second are working because that first "<$transclude tiddler='$(mytestname)$' field='$(mytestfield)$'/>" works the way its supposed to. What I can't figure out is how to put that output into another variable. I'm used to using bash where I could do something like Var=$(cat somefile.txt) that would put the output of the cat command into the variable for use elsewhere. I.e. the line "foo is <<foo>> or $foo$ or $(foo)$." doesn't do anything escept "foo is or $foo$ or ." -- 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/bd468f91-776d-4c87-bff3-d28c19bcc57d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

