cfif with AND and OR statements

2005-05-25 Thread Cameron Johnson
(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

RE: cfif with AND and OR statements

2005-05-25 Thread Pascal Peters
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

RE: cfif with AND and OR statements

2005-05-25 Thread Ian Skinner
Message- From: Cameron Johnson [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 25, 2005 8:23 AM 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

RE: cfif with AND and OR statements

2005-05-25 Thread Dave Francis
Isn't CASE 2, condition C True? ie. index.cfm NEQ page.cfm -Original Message- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 25, 2005 11:41 AM To: CF-Talk Subject: RE: cfif with AND and OR statements A = isDefined(url.ItemNumber) B = URL.ItemNumber NEQ 12345 C

RE: cfif with AND and OR statements

2005-05-25 Thread Ian Skinner
Francis [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 25, 2005 8:57 AM To: CF-Talk Subject: RE: cfif with AND and OR statements Isn't CASE 2, condition C True? ie. index.cfm NEQ page.cfm Confidentiality Notice: This message including any attachments is for the sole use

Re: cfif with AND and OR statements

2005-05-25 Thread Joe Kelly
Not sure if this is what your asking for after deciphering your question cfif (isDefined(URL.ItemNumber) AND (URL.ItemNumber IS 12345) OR (CGI.SCRIPT_NAME IS '/page.cfm')) !--- if ItemNumber is 12345, also if page.cfm, but the item number has to be present in both cases --- show table 2

RE: cfif with AND and OR statements

2005-05-25 Thread Cameron Johnson
C code. C code run. Run code run. Please! - Cynthia Dunning . -Original Message- . From: Dave Francis [mailto:[EMAIL PROTECTED] . Sent: Wednesday, May 25, 2005 8:57 AM . To: CF-Talk . Subject: RE: cfif with AND and OR statements . . Isn't CASE 2