Use ListFind, which looks for a complete value:

<cfif listfind( mylist, myvalue )>

David

> -----Original Message-----
> From: Angel Stewart [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, July 15, 2000 6:52 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Variable IN a list? How to check?
>
>
> Yeah well this one win, dread.
>
> This man went and did Time Trials on the loop
> =)
>
> Now I'm totally confused as to which method to use..
> A CFLOOP with a <CFIF ....Contains...>
> Or one with a NOT GetListAt.
> (bear in mind that for htis particular problem, #DeptID# is a list of
> values,not necessarily a single value).
>
> -Gel
>
>
> ----- Original Message -----
> From: Duane Boudreau <[EMAIL PROTECTED]>
>
> > Sorry I didnt notice that you were adding two extra blank
> elements to the
> > string.
> >
> > I tried time trials on this and over 100 iterations each the
> contains come
> > out about an average of 250 ms faster
> >
> > Duane
>
>
> ------------------------------------------------------------------
> ------------
> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> 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.mail-archive.com/cf-talk@houseoffusion.com/
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.

Reply via email to