ColdFusion ListFind Example
March 31, 2009
The ListFind and ListFindNoCase functions are very handy in ColdFusion.
The ListFind function takes up to 3 arguments:
ListFind(list, value, [delimiter])
The default delimiter for all list functions in ColdFusion is a comma.
Here's a simple example of using ListFind:
ListFind("jpg,gif,png", "gif")
The above code would return 2. The ListFind function will return 0 if the value is not found in the list.
Tweet
Related Entries
- Top 10 Underrated Functions in ColdFusion - January 10, 2007
- Floor Function in ColdFusion is Int - May 30, 2006
Trackbacks
Trackback Address: 747/AADC9A7FCF339CC80A811AA224E32312
Post a Comment
Spell Checker by Foundeo
Recent Entries
- Nginx redirect www to non www domain
- HashDOS and ColdFusion
- HackMyCF Updated for APSB11-29 Security Hotfix
- Adobe eSeminar on FuseGuard
- Determining Which Cumulative Hotfixes are Installed on ColdFusion
- Adding Two Factor Authentication to ColdFusion Administrator
- ColdFusion Developer Week at Adobe.com
- Bug Loading Scripts for CFFileUpload and CFMediaPlayer


add to del.icio.us



