[Zope] <dtml-if> String question

Steve Alexander steve@cat-box.net
Mon, 15 May 2000 20:54:54 +0100


Stuart Foster wrote:
> 
> Here's a nubie question. If I am using two string values in a <dtml-if> tag
> why is it not evaluating to true?
> 
> s1 = 'Hello'
> s2 = 'Hello'
> 
> <dtml-if "s1==s2">  <-- This is returning 0

When I view the following DTML method, I get a "1".

  <dtml-let s1="'hello'"
            s2="'hello'">
    <dtml-var "s1==s2">
  </dtml-let>

Can you provide a full example where you're getting unexpected
behaviour?

--
Steve Alexander
Software Engineer
Cat-Box limited