Closed dtarasiuk closed 13 years ago
Probably a dup of https://github.com/jquery/jquery-tmpl/issues/70.
Try using {{if $data.foo && 1}}.
Closing, per comment above. If foo is false {{if foo &&1}} works but if foo may be undefined you need to put {{$data.foo && 1}} (assuming foo is a field you are testing for on your data).
same with {{if (foo) && (1==1)}}, {{if ((foo) && (1==1))}} etc variants