I am having issue with the if syntax via Templetor

Currently I have:
--------------------------------
$if orderBy == 's.title':
    $if orderSort == 'ASC': <a href="/series/s.title/DESC">Title <img
src="images/asc.gif"/></a>
    $else: <a href="/series/s.title/ASC">Title <img src="images/
desc.gif"/></a>
$else:<a href="/series/s.title/ASC">Title <img src="images/null.gif"/
></a>

If I try (the if never executes only goes to else):
--------------------------------
$if orderBy == 's.title' and orderSort == 'ASC:
    <a href="/series/s.title/DESC">Title <img src="images/asc.gif"/></
a>
else:
    <a href="/series/s.title/ASC">Title <img src="images/null.gif"/></
a>

If I try (syntax error):
--------------------------------
$if orderBy == 's.title':
    $if orderSort == 'ASC':
        <a href="/series/s.title/DESC">Title <img src="images/asc.gif"/
></a>
    $else:
        <a href="/series/s.title/ASC">Title <img src="images/desc.gif"/
></a>
$else:
    <a href="/series/s.title/ASC">Title <img src="images/null.gif"/></
a>

If I try (the if/else works but the last else always executes):
--------------------------------
$if orderBy == 's.title':
    $if orderSort == 'ASC': <a href="/series/s.title/DESC">Title <img
src="images/asc.gif"/></a>
    $else: <a href="/series/s.title/ASC">Title <img src="images/
desc.gif"/></a>
$else:
    <a href="/series/s.title/ASC">Title <img src="images/null.gif"/></
a>


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to