what are the types of $x and $a.func("$z") ?

subtraction only works on java.lang.Number (or primitive counterparts)
or objects that implement Velocity's TemplateNumber interface.

On Wed, Aug 24, 2011 at 12:33 PM, Alec Swan <alecs...@gmail.com> wrote:
> Hello,
>
> I am having problems with getting the following expression to work correctly:
> #set($var = $x - $a.func("$z"))${var}
>
> Note that the following expressions work properly:
> #set($var = $x)${var}
> #set($var = $a.func("$z"))${var}
>
> However, subtraction does not seem to return the expected result.
>
> Thanks,
>
> Alec
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@velocity.apache.org
> For additional commands, e-mail: user-h...@velocity.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@velocity.apache.org
For additional commands, e-mail: user-h...@velocity.apache.org

Reply via email to