Re: setting <input> checked

Larry Leszczynski <[email protected]> Fri, 05 Dec 2014 10:01:53 -0700
Newsgroups gmane.comp.lang.perl.modules.template-toolkit
Message-ID <1417798913.4086684.199314265.56625357@webmail.messagingengine.com>
Actually, that probably only works in a [% PERL %] block...

On Fri, Dec 5, 2014, at 10:00 AM, Larry Leszczynski wrote:
> Hi Bill -
> 
> On Fri, Dec 5, 2014, at 09:56 AM, Bill McCormick wrote:
> > okay, so now the bitwise *and* is giving me problems:
> > 
> > <input class="radio" type="radio" name="recipe_type" value="Warmup" [%
> > 'checked="1"' IF 15 && 16 %]/>Warmup
> 
> You're doing logical AND, not bitwise AND.  You want "15 & 16".
> 
> Larry
> 
> _______________________________________________
> templates mailing list
> [email protected]
> http://mail.template-toolkit.org/mailman/listinfo/templates