It is just the nature of CF that a value of any value other than zero is true and zero is false, which can be used to great advantage.
______________________________________________________
<file:///E:/EUColor.gif>
Bill Grover
Manager, Information Systems Phone: 301.424.3300 x3324
EU Services, Inc. FAX: 301.424.3696
649 North Horners Lane E-Mail: <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
Rockville, MD 20850-1299 WWW: <http://www.euservices.com/> http://www.euservices.com
______________________________________________________
-----Original Message-----
From: Taco Fleur [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 22, 2004 4:57 PM
To: CF-Talk
Subject: RE: List ? in a CFIF
Mike,
the thing that might confuse you is the fact there is only a function listed
in the cfif statement
The function either returns TRUE or FALSE depending on whether the value
"phone" is found in the list, so in short it would be
<CFIF listfindnocase(validation_error, "phone")>
If you want to type it all out, which saves time typing but is quicker to
evaluate, you'd have
<CFIF listfindnocase(validation_error, "phone") EQ true>
Which might make more sense to you.
Taco Fleur
Blog <http://www.tacofleur.com/index/blog/>
http://www.tacofleur.com/index/blog/
Methodology http://www.tacofleur.com/index/methodology/
0421 851 786
Tell me and I will forget
Show me and I will remember
Teach me and I will learn
-----Original Message-----
From: Mickael [mailto:[EMAIL PROTECTED]
Sent: Friday, 23 January 2004 7:40 AM
To: CF-Talk
Subject: Re: List ? in a CFIF
Hi Raymond,
Can you explain how to use it. I see examples on the web like this <CFIF
listfindnocase(validation_error, "phone")> I just don't understand the
first argument in that example validation_error sorry for my newbieness
Mike
----- Original Message -----
From: Raymond Camden
To: CF-Talk
Sent: Thursday, January 22, 2004 5:18 PM
Subject: RE: List ? in a CFIF
Sure, use listFind or ListFindNoCase.
Raymond Camden
.sigless in Boston
> -----Original Message-----
> From: Mickael [mailto:[EMAIL PROTECTED]
> Sent: Thursday, January 22, 2004 3:13 PM
> To: CF-Talk
> Subject: List ? in a CFIF
>
> Hi All,
>
> I am sure there is a way to do this but I am unclear on the syntax.
>
> Instead of having many CFIF's is there a way to check for a
> value similar to SQL where you say
>
> select * from table where something in ('value','value','value)
>
>
> I have this <cfif attributes.clt_master_id eq 'both'> But
> instead of creating more than one cfif statement I would like
> to add more than one value without making it ugly with a
> whole bunch of OR's
>
> Can this be done?
>
> Mike
>
>
>
_____
_____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

