well pick a number. say 42
42 IS NOT 1 = TRUE
42 IS NOT 13= TRUE
etc.
t || t || t || ....
result = TRUE and do the if clause
say 13
13 IS NOT 1 = TRUE
13 IS NOT 13= FALSE
13 IS NOT 4 = TRUE
t || f || t
see what i'm saying? always true, also inefficient
try
<cfset ID=1>
<cfset myList="1,2,3,4">
<cfif ListFind(myList, ID)> <!--- Returns 0 if it can't be found --->
<!--- ID is in myList --->
<cfelse>
<!--- ID ain't in myList --->
</cfif>
-Sean
___________________________________________
Sean Brown <[EMAIL PROTECTED]>
Systems Engineer <[EMAIL PROTECTED]>
Westcar Consulting Group www.westcar.com
Allaire Alliance Partner www.allaire.com
___________________________________________
-----Original Message-----
From: Michel Gagnon [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 24, 2000 2:48 PM
To: [EMAIL PROTECTED]
Subject: CFIF Problem with OR
Hi there!
What is wrong with this statement?
<CFIF (ID IS NOT "1") OR (ID IS NOT "13") OR (ID IS NOT "4") OR (ID IS NOT
"43")>
I also tried:
<CFIF ID IS NOT "1,13,4,43">
It executes what's inside even if ID is 43
Any ideas?
----------------------------------------------------------------------------
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.