Re: [htmltmpl] tmpl_loops and with if and unless
Brought to you by:
samtregar
From: Alex K. <ka...@ra...> - 2005-02-10 12:04:15
|
* Thomas Nyman <th...@te...> [February 10 2005, 14:54]: > the conditional is displayed. What i need is something along the lines > if loop one is empty but not loop two then display loop two else > display conditional. Pass additional boolean (not_one_and_two => !@loop_one && @loop_two) from your Perl code and check it inside template with a simple <tmpl_if>. -- Alex Kapranoff, $n=["1another7Perl213Just3hacker49"=~/\d|\D*/g]; $$n[0]={grep/\d/,@$n};print"@$n{1..4}\n" |