I have had exactly the same thoughts recently.
Basically what would be nice is the ability to define real functions that
accepts arguments and return values to vars.
Maybe something like:
vars:
"foo" function => bar("$(arg1)","$(arg2)");
...
body function bar(a,b)
{
return => execresult("
I have not taested this, but I think you could have the module declare an
array variable...
body agent your_module(parm)
{
vars:
"output[$parm]" string => execresult("verylongandcomplexcommandhere
myArgument");
}
Then you when you
modules:
"whatever" usebundle => your_modu
Hello,
There is an execresult function that I use quite a lot to fill a variable in
my bundles. Is it possible to somehow modularize that in a method and have
the variable somehow be some kind of "output" from the method?
What I mean is that I have many places in my code where I do:
vars:
foo s