Re: setting <input> checked

Larry Leszczynski <[email protected]> Fri, 05 Dec 2014 10:00:19 -0700
Newsgroups gmane.comp.lang.perl.modules.template-toolkit
Message-ID <1417798819.4086017.199313405.485B6F43@webmail.messagingengine.com>
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