Hello,
I would like to perform a sum in a velocity script.
The following works well:
#set ($a = 1)
#set ($b = 1)
#set ($c= $a + $b)
$c returns 2
But if I modify with
#set ($b = $categoryDoc.getObject("Blog.Categories","name",$bcategory).get("color_red"))
… the sum does not work anymore. It seems that $b is
considered as a string and gets appended to $a instead of added. The prope
Is there a way to conve
Thanks,
BOUSQUET Jeremie GGS Tel: +33 4 42 36 42 93 Avenue du Jujubier Z.I. Athélia IV BP 90 |