Question
ListFind and ListContains
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.
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.
