AnsweredAssumed Answered

Adding commas to values

Question asked by Daniela Puizina on Jun 20, 2019
Latest reply on Jun 20, 2019 by Sanford Whiteman

Sanford Whiteman Hi Sanford - Continuing the discussion here!

So my comma problem - I'm trying to create this script (below) which works but I don't know what to do about adding a comma to the countless values that could be displayed if under 25k. Any ideas?

 

#set ($scorecap = $convert.toNumber(${lead.cap25}))
#if ( $scorecap > 25000)
$25,000
#else
${lead.cap25}
#end

Outcomes