On 05-Sep-07, at 7:19 PM, slav0nic wrote:
>
> anybody can show me as i can do "if" in for loop (in templates)?
$for i in [1, 2, 3, 4]:
$if i == 2:
The number is 2.
$else:
The number is not 2.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---