Allow string or numeric primary parameters on functions #1295
DarinClarkSE
started this conversation in
Ideas
Replies: 1 comment
-
The below syntax is difficult to implement But I can see if it's possible to remove |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently to call a function with parameters which aren't environment variables I have to use
{{@|incrementNumber("NUM")}}
And the function looks like
function incrementNumber(throwAway,variableName){
var varValue = tc.getVar(variableName);
varValue++;
tc.setVar(variableName,varValue);
return varValue;
}
It would be nice if that could be simplified to
{{"NUM"|incrementNumber()}}
or
{{incrementNumber("NUM")}}
And the function wouldn't need the throwAway parameter.
Beta Was this translation helpful? Give feedback.
All reactions