This only works if you are using Zope. If you are using a older version of software with a previous of the document template system, things might get more difficult. What version of Zope are you using? --Paul
-----Original Message----- From: Michel Pelletier [mailto:michel@digicool.com] Sent: Wednesday, August 04, 1999 12:22 PM To: 'Sean Robertson'; zope@zope.org Subject: RE: [Zope] checking variables
-----Original Message----- From: Sean Robertson [mailto:seanr@infi.net] Sent: Wednesday, August 04, 1999 12:11 PM To: zope@zope.org Subject: [Zope] checking variables
I am trying to check for the existance of a variable that is passed in the URL. The statement is as follows:
<!--#if cconnect==true--> (code block one) <!--#else cconnect==true--> (code block two) <!--#/if cconnect==true-->
You are using the python expression syntax, thus your expression must be quoted:
<!--#if "cconnect==true"--> ...
Note that you must have an object called true also. If you want to know if the cconnect request attribute is equal to the *string* 'true' you must say:
<!--#if "cconnect=='true'"-->
-Michel
_______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope
(To receive general Zope announcements, see: http://www.zope.org/mailman/listinfo/zope-announce
For developer-specific issues, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )