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
A = isDefined(url.ItemNumber)
B = URL.ItemNumber NEQ 12345
C = CGI.SCRIPT_NAME NEQ '/page.cfm'
CASE 1
url.itemNumber UNDEFINED
CGI.ScriptName = 'page.cfm'
IF (A AND B) OR C
IF (F AND F) OR F
IF F OR F
FALSE Clause Run
CASE 2
url.itemNumber = 12345
cgi.ScriptName = 'index.cfm'
IF (A ND B) OR C
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
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
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
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
6 matches
Mail list logo