On Mon, May 11, 2009 at 6:14 PM, Yanick Champoux <yan...@babyl.dyndns.org>wrote:
> 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 %] > And if you are picky, just do: [% b = a > 0 || 0 %]
_______________________________________________ templates mailing list templates@template-toolkit.org http://mail.template-toolkit.org/mailman/listinfo/templates