[Zope] Re: checking variables
Sean Robertson
seanr@infi.net
Wed, 4 Aug 1999 12:13:18 -0400
BTW, the variable is passed in the URL:
http://classifieds.pilotonline.com/cv3/pilot/search?mainclass=Employment&cco
nnect=true
(I removed a bunch of other variables, but you get the idea)
----- Original Message -----
From: Sean Robertson <seanr@infi.net>
To: <zope@zope.org>
Sent: Wednesday, August 04, 1999 12:11 PM
Subject: 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-->
>
> The problem is that I always get the second code block. What am I doing
> wrong? Here is the relevant section of the documentation for the version
> that I have:
>
> Conditional insertion is performed using if and else commands. For
> example:
> <!--#if name-->
> text
> <!--#/if name-->
> where name is the name of the item.
> To include text when a test is false use:
> <!--#else name-->
> text
> <!--#/else name-->
> To include text when an item is true and to include different text
when
> the item is false use:
> <!--#if name-->
> true text
> <!--#else name-->
> false text
> <!--#/if name-->
>
>
> Sean Robertson
> Multimedia Artist, PilotOnline
> seanr@infi.net
>