Hi, I am trying to check to see if the dtml-var revision is set to a null and if it is I want to set it to "%" as a sql wildcard. This is my test. <dtml-if expr="revision==''"> <p><dtml-var revision>test if1</p> <dtml-let revision="'%'"> <p><dtml-var revision>test if2</p> </dtml-let> <p><dtml-var revision>test if3</p> </dtml-if> Here are my results. test if1 %test if2 test if3 How come the variable is not set after I leave dtml-let statement? Thanks. Larry McDonnell Proton Energy Systems 50 Inwood Rd. Rocky Hill, CT 06067 (860) 571-6533 ext. 531 Email:lmcdonnell@protonenergy.com www.protonenergy.com
"McDonnell, Larry" wrote:
Hi,
I am trying to check to see if the dtml-var revision is set to a null and if it is I want to set it to "%" as a sql wildcard. This is my test.
<dtml-if expr="revision==''"> <p><dtml-var revision>test if1</p> <dtml-let revision="'%'"> <p><dtml-var revision>test if2</p> </dtml-let> <p><dtml-var revision>test if3</p> </dtml-if>
Here are my results. test if1 %test if2 test if3
How come the variable is not set after I leave dtml-let statement? Thanks.
http://www.zope.org/Members/michel/HowTos/NameSpaceHow-To -- ------------------------------------------------------------- Who's got only a hammer sees the world as a nail hans augustin (software developer) hans@beehive.de beehive elektronische medien GmbH http://www.beehive.de phone: +49 30 847-82 0 fax: +49 30 847-82 299
participants (3)
-
Chris Withers -
hans -
McDonnell, Larry