Coldfusion > ListHasValue pattern search function

Use this to do an exact pattern check for a value in a list.
This is useful inside of a loop checking numbers against a number list.

EX :

list = "91, 92"

if you loop from 1 - 100, ListFind and related CF functions will match
on 1, 2, and 9. Not just 91 and 92

Use this when you're looping and you ONLY want to match on 91, or 92

Score: 0/10


Would you like to comment?
Sign up for a free account or sign in (if you are already a member).


URL:


Embed:



Uploaded on 8/12/2009 12:33:08 AM
by ericfickes

Programming Language:
Coldfusion

Tags:
Coldfusion 
find function 
find pattern 
list search function 
ListHasValue 

Viewed 523 times
Select language: Español | English