[Zope] another DTML ques

Chris Withers chrisw@nipltd.com
Tue, 18 Jun 2002 06:46:03 +0100


Aseem Mohanty wrote:
> 
>   I have a PyScript that returns a list of strings
> 
> Somehow I am unable to do the following:
> 
> <dtml-let ll="get_list()">
>   <dtml-if "'test_str' in ll">
>     YES
>   <dtml-else>
>     NO
>   </dtml-if>
> </dtml-let>
> 
> I know that 'test_str' is in the list. The if test fails always.
> What am I doing wrong??

Well, you're using DTML for starters ;-)

The code for get_list is important here, since it's obviously not returning wha
you expect it to ;-)

cheers,

Chris