try
 
<cfif isdefined("Live") and Live eq "yes">
 #attributes.Data#
<cfelse>
Sorry this page is currently not available.
</cfif>
 
or
 
<cfparam name="Live" default="no">
<cfif Live eq "yes">
 #attributes.Data#
<cfelse>
Sorry this page is currently not available.
</cfif>
 
Jon
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Michael J. Sammut
Sent: Tuesday, March 04, 2003 10:33 PM
To: [EMAIL PROTECTED]
Subject: [cf-xml] Param a Node String?

I am befuddled and I hope someone can lend some advise. 
 
I am going after a node in xml:
<cfscript>
Live=GetContent.XmlFeed[1].contentdata.XmlChildren[1].live.XmlText;
</cfscript>

Then I am testing on it:

<cfif Live eq "yes">
 #attributes.Data#
<cfelse>
Sorry this page is currently not available.
</cfif>

My problem is that the node does not always exist and every way I try to param it I get an error.  Does anyone know if I can param out GetContent.XmlFeed[1].contentdata.XmlChildren[1].live.XmlText?

 
Am I missing the obvious?

Thanks!! 
 
Regards,
Michael J. Sammut, Partner
________________________________________________
F O U R  E Y E S  P R O D U C T I O N S
 
think | plan | create :: web site design & development
 
http://www.foureyes.com
 


Reply via email to