learning some velocity scripting and having some issues rendering.
this is what i have.
#if (${topics_cList.get(0).topics_Total} > 0 )
#set( $topic1Percent = $math.div(${topics_cList.get(0).topic1}, ${topics_cList.get(0).topics_Total}) )
#set( $topics2Percent = $math.div(${topics_cList.get(0).topic2}, ${topics_cList.get(0).topics_Total}) )
#set( $topics3Percent = $math.div(${topics_cList.get(0).topic3}, ${topics_cList.get(0).topicsTotal}) )
Percentage of topics 1: $number.number($topics1Percent) %
Percentage of topics 2: $number.number($topics2Percent) %
Percentage of topics 3: $number.number($topics3Percent) %
#end
the values are not rendering.
any direction or articles that can help?
... View more