ultrakit <
ultr...@gmail.com> wrote:
> I have a question about find items in a list. Let say the list
> contains 1,2,3,4,5.
> I can easily use listFindNoCase to find 1 but what function can I use
> if I want to check if the list contains 1 and 3?
Assuming that you're using it as a condition in a CFIF statement,
search for each number individual and use an AND in the CFIF:
<CFSET tmp="1,2,3,4,5" >
<CFIF ListFindNoCase(tmp, "1") GT 0 AND ListFindNoCase(tmp, "3") GT 0>
<!--- do stuff --->
</CFIF>
--
Bob Dively | I used to be indecisive, but now I'm not sure...