Genshi evaluates Python statements, so you write it much like regular
code:

${var1 or var2}

<span py:if="var1 or var2">it's true!</span>

${var1 == 'hello' and 'yes' or 'no'}


:::simon

https://www.coderesort.com


On 22 Okt, 09:51, velappan velappan <[EMAIL PROTECTED]> wrote:
>  Hi all,
> I'm Pretty new to genshi template patterns i want to use Logical OR
> operation in genshi.I used  || symbol in my code it shows an error '
> invalid token in your code' .Can any one help me out in  how to use
> Logical OR operation in Genshi Template
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Development" 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/trac-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to