macromedia.coldfusion.cfml_general_discussion
[Top] [All Lists]

ListFind and ListContains

Subject: ListFind and ListContains
From: "Olivia Crazy Horse"
Date: Tue, 16 Sep 2008 22:34:47 +0000 UTC
Newsgroups: macromedia.coldfusion.cfml_general_discussion

I have a string variable name "fieldName" and it output, 
"comments,other,active,sale".
 I want to find if 'other' is in this string, so I use <cfif 
#ListFind(fieldName,"other")> but it does not work. 

 Does ListFind and/or ListContains actually find/search the variable for the 
desired output, or does it just find the first position and return true ? 

 I need to find out if 'other'  is in the string, and if it is, I need to do 
one thing, if not, then do something else.


<Prev in Thread] Current Thread [Next in Thread>