I need some help with sending variables to functions as I seem to only be able to send a single variable even if I declare two to say nothing of being able to get a return value from a JavaScript function.
Here's my first function:
Code: Select all
<function id="TAROCTEST2">
@RES ← #1 + #2.
"TT2" + @RES
</function>
Code: Select all
@EXTRA ← @TAROCTEST2(@DIFF, @D).
Trying to do a very simple HelloWorld JavaScript function ends up returning 0 as well.
Code: Select all
<function id="TAROCTEST" language="javascript">
function TarocTest(diff)
{
return 'TTJS';
}
</function>
Code: Select all
@RESULT ← @TAROCTEST("1").

Please.
Help.
I have a much more complex JS function that I have actually tested as working in a HTML page, but if I can't get it to return...