Is it possible that the variables may have extraneous leading and/or trailing spaces? If so try using: <dtml-if "_.string.strip(s1)==_.string.strip(s2)"> __________________________________________________________________ Jim Sanford . Database Engineer / \ / Accelerated Technology, Inc. / / 720 Oak Circle Drive East / / \ Mobile, AL 36609 / / \ Voice: 334-661-5770 fax: 334-661-5788 / \ E-Mail: jsanford@atinucleus.com Web: http://www.atinucleus.com Nucleus. All You NEED in an RTOS. Royalty Free __________________________________________________________________ ----- Original Message ----- From: Stuart Foster <stuartf@mediserve.com> To: <zope@zope.org> Sent: Monday, May 15, 2000 1:46 PM Subject: [Zope] <dtml-if> String question 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 Stuart Foster MediServe Information Systems
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )