Clayton Scott wrote:
> Try this instead:
> 
> [% SET b = a > 0 ? 1 : 0 %]
> 
> or drop the SET which isn't really necessary
> 
> [% b = a > 0 ? 1 : 0 %]

        Or drop the ternary operator as well, which is also not really 
necessary (unless you're picky about having a '0' and not just 'undef'):

        [% b = a > 0  %]

:-)

Joy,
`/anick

_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to