[Zope] <dtml-if> String question
Stuart Foster
stuartf@MediServe.com
Mon, 15 May 2000 12:57:59 -0700
I am assuming that was the problem, because when I changed the DB fields to
the same size it worked.
Your example will come in handy thank you...
I have ordered some books on Python, will they help me understand the "_."
stuff ?
-----Original Message-----
From: Jim Sanford [mailto:jsanford@atinucleus.com]
Sent: Monday, May 15, 2000 12:31 PM
To: Stuart Foster; zope@zope.org
Subject: Re: [Zope] <dtml-if> String question
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
> http://www.mediserve.com
>
_______________________________________________
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 )