actually i just moved the $count back a level so it just says zero results found... easier than trying to find an answer to this..
i'm wondering if tmeplator is the best engine to learn. http://206.251.38.98/search?s=Home works http://206.251.38.98/search?s=Jello (zero results) On Jan 26, 2:06 pm, Greg Milby <[email protected]> wrote: > Still returns a 500 internal server error, i'm pretty sure i'm not > evaluating results properly :) > > ----------------------- > Visit My Sites!www.syrbot.com| My Sitewww.attackr.com| Latest Blog Posts > > 2010/1/26 Aydın ŞEN <[email protected]> > > > > > > > 2010/1/26 geekbuntu <[email protected]> > > >> 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. > > > Sorry, i didn't look carefully, you should give indent after if, for (just > > like python) > > > $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] <webpy%[email protected]> > >> . > >> For more options, visit this group at > >>http://groups.google.com/group/webpy?hl=en. > > > -- > > Aydın ŞEN > > > Ege Üniversitesi > > Uluslararası Bilgisayar Enstitüsü > > > -- > > 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] <webpy%[email protected]>. > > For more options, visit this group at > >http://groups.google.com/group/webpy?hl=en. -- 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.
