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
 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