If you wanted to see if 21 exists in a form variable, you could:
<cfif ListFindNoCase(form.variable,21)>
...
<cfelse>
...
</cfif>
This will return the List index of 21 if it is found. If it is not found,
then it will return 0, and in this case would cause the <cfelse>. HTH.
-----Original Message-----
From: LANCASTER, STEVEN M. (JSC-OL) (BAR)
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 12, 2002 11:27 AM
To: CF-Talk
Subject: Searching a Variable
I have a variable being passed from one page to the next and it may or may
not be a list of variables so the actual output could be 21 or it could be
18, 21. What I need to do is specifically search this string and find if
this 21 exists. Can I do that in a CFIF statement or do some kind of query
that would help out. HELP Please. I do not even know where to start.
Steven Lancaster
Barrios Technology
NASA/JSC
281-244-2444 (voice)
[EMAIL PROTECTED]
______________________________________________________________________
Why Share?
Dedicated Win 2000 Server � PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
Instant Activation � $99/Month � Free Setup
http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists