i'm currently using this (without the if and it works):
$def with (title, name, results, count)
$var title:$title
$var name:$name
$var count:$count
There are $count results found.
<ul>
$for result in results:
<li>
<b> $result</b>
</li>
</ul>
$count Search Results were found.
On Jan 26, 1:36 pm, geekbuntu <[email protected]> wrote:
> can anyone advise me how to properly construct an 'if' inside a
> template?
>
> $def with (title, name, results, count)
> $var title:$title
> $var name:$name
> $var count:$count
>
> if $result != '':
>
> <ul>
> $for result in results:
> <li>
> <b> $result</b>
> </li>
> </ul>
> $count Results Were Found
> else:
> No results were found.
>
> thanks in advance,
> greg
--
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/webpy?hl=en.