ListIndexExists

Determines if an element at the given position exists or not

ListIndexExists( list, index [, delimiter [, includeEmptyFields ] ] )

Returns: Boolean

Argument Description Default
list
string, required

a string list

index
number, required

index to check for.

delimiter
string, optional

Characters that separate list elements. The default value is comma.

,

includeEmptyFields
boolean, optional

if set to true, empty values are included as well

Examples

//Simple Example
writeoutput(listIndexExists("Susi,LAS,,lucee,,,test",3));
//Member Function
strList=",I,,love,lucee,,";
writeDump(strList.listIndexExists(6));//Not exists, returns false

See also