Still returns a 500 internal server error, i'm pretty sure i'm not evaluating results properly :)
----------------------- Visit My Sites! www.syrbot.com | My Site www.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.
