16 Jan
2009
16 Jan
'09
6:42 p.m.
Vincent Massol wrote:
Hi,
On Jan 16, 2009, at 4:05 PM, Kevin_C wrote:
Why can't I do something like:
#set($tRule = "") #set($idx = $tRule.indexOf(','))
$idx ## Outputs -1
$idx+1 ## Outputs -1+1
Natural, remember velocity is a template language. #set($idx = $idx + 1)
I've tried using the $number tool but it doesn't work, if I do:
$number.format($idx)
It outputs $number.format($idx).
See http://platform.xwiki.org/xwiki/bin/view/DevGuide/Scripting
(it's $numbertool)
What am I missing?
.:. Kevin
Thanks -Vincent http://xwiki.com http://xwiki.org http://massol.net
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users