Try ListFind

At 10:51 AM -0400 7/7/2000, Gilles Ratte wrote:
>I need know if a number is one of a list item.
>
>let me explain
>
>let's say.. mynumber = 2 ans mylist = 2,67,34,52
>
>
>I thought this would do ..
><cfif #listcontains(mylist, mynumber)# is 0>
>..
><cfelse>
>..
></cfif>
>
>but it does not act like I want ... It compare the same whay as of strings
>and will find 2 and 52
>
>What I want to do is to get the exact item in the list
>
>
>Someone has an idea on how to do it?
>
>Thanks
>------------------------------------------------------------------------------
>Archives: http://www.mail-archive.com/[email protected]/
>To Unsubscribe visit 
>http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_tal 
>k or send a message to [EMAIL PROTECTED] with 
>'unsubscribe' in the body.

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
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