Velocity tokens for Math Equations
Hello all,
I'm hoping I can get a little help with some Velocity scripting.
Essentially I I have a token that populates for certain people and I am trying to reduce that rate (it's a token) by either .25 or .50. doing some research and I found this site (Velocity Math Tool: Subtract : MathTool « Velocity « Java), so I plugged in the following:
$math.sub($lead.autoPreApprovalNewRate, ".25")
and
$math.sub($lead.autoPreApprovalNewRate, ".50")
I solved the main issue (not rendering the token but rather displaying the code) by confirming that the checkbox was clicked (it was not). now I guess my question is, is this the ideal way to perform such a task?
Thanks!