How do I convert the string in a parameter, i.e.
so that when I call this variable, it will return it as a readable formula instead of a string
EDIT: More specifically, I need it to calculate the formula instead of printing it out
EDIT 2: Looking at documentation, I found the eval(); function, which works, but I don't know if that's the recommended way to do that or not.
Code:
var phitsform = (parameters['Possible Hits Formula'], "a.agi / 16");
so that when I call this variable, it will return it as a readable formula instead of a string
EDIT: More specifically, I need it to calculate the formula instead of printing it out
EDIT 2: Looking at documentation, I found the eval(); function, which works, but I don't know if that's the recommended way to do that or not.