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).
What am I missing?
.:. Kevin
--
View this message in context:
http://n2.nabble.com/Strangeness-with-numbers...-tp2168613p2168613.html
Sent from the XWiki- Users mailing list archive at
Nabble.com.