[Templates] - operator
Leo Lapworth
Leo Lapworth <leo@cuckoo.org>
Thu, 5 Sep 2002 15:46:23 +0100
On Thu, Sep 05, 2002 at 01:41:20PM +0000, Rafiq Ismail (ADMIN) wrote:
>
> We are running tt2 v2.07.
> What we have found is something like:
> [% isone = 1 %]
> .
> [% iszero = isone-1 %]
>
> Doesn't appear to work, whereas :
>
> [% istwo = (isone)+1 %]
>
> Does work.
>
> The subraction was accomplished through:
>
> [% iszero = isone - 1 %]
As far as I understand it you need spaces around the sign,
whether it's + or -
so:
[% iszero = isone - 1 %]
[% istwo = isone + 1 %]
should work.
Leo