listFindLast

Returns the position of the last occurrence of a value in a list, or 0 if it is not found. The search is case-sensitive.

listFindLast(list, value [, delimiters] [, includeEmptyFields]) → returns numeric

Member Function Syntax

list.listFindLast(value [, delimiters, includeEmptyFields])

This function requires Adobe ColdFusion 2025.0.8 and up.  Not supported on Lucee, etc.

Argument Reference

list string
Required

The list to search.

value string
Required

The value to find.

delimiters string
Default: ,

Characters that separate list elements.

includeEmptyFields boolean
Default: false

true to count empty elements as list positions.

Examples
Sample code invoking the listFindLast function

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub