What are you trying to achieve?? You should see table 1 on page.cfm and
if there is a url parameter named ItemNumber that isn't 12345. At least,
that is what you wrote.

Pascal

> -----Original Message-----
> From: Cameron Johnson [mailto:[EMAIL PROTECTED]
> Sent: 25 May 2005 17:23
> To: CF-Talk
> Subject: cfif with AND and OR statements
> 
> I've got the following cfif statement in one of my header pages:
> 
> <cfif (isDefined("URL.ItemNumber") AND URL.ItemNumber NEQ 12345) OR
> (CGI.SCRIPT_NAME NEQ '/page.cfm')>
> show table 1
> <cfelse>
> show table 2
> </cfif>
> 
> Here are my scenarios:
> 
> - when the cfif is combined into one statement, it works correctly
> (meaning I see table 2) when browsing to /page.cfm. But it doesn't
work
> when browsing to index.cfm?ItemNumber=12345
> 
> - if I split the statement into two cfif statements, I see table 2 on
both
> /page.cfm and index.cfm?ItemNumber=12345
> 
> Any ideas why it's not working on index.cfm?ItemNumber=12345 when the
> statement is combined? Is something wrong with the cfif that I'm not
> seeing?
> 
> Appreciate the help.
> 
> - Cameron
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207656
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to