ListAppendListAppend ( list , value [, delimiters ]) DescriptionAdds a value to the end of a list. Example<cfset exampleList = "Apples, Oranges, Grapes, Pears, Mangoes"> <cfoutput> # ListAppend (exampleList, 'Cranberry')# </cfoutput> |
ListChangeDelimsListChangeDelims ( list , new_delimiter [, delimiters ]) Description
Allows for the change of a list
Example<cfset exampleList = "Apples, Oranges, Grapes, Pears, Mangoes"> <cfoutput> List with new delimiters: #ListChangeDelims(exampleList, '$$', ',')# </cfoutput> |
ListContainsListContains ( list , substring [, delimiters ]) DescriptionDetermines the index of the first list element that contains a specific value. Example<cfset exampleList = "Apples, Oranges, Grapes, Pears, Mangoes"> <cfoutput> Oranges is the number # ListContains (exampleList, "Oranges")# in this list. </cfoutput> |
ListContainsNoCaseListContainsNoCase ( list , substring [, delimiters ]) DescriptionSearches for a value's index within a list that contains the substring. Example<cfset exampleList = "Apples, Oranges, Grapes, Pears, Mangoes"> <cfoutput> Oranges is the number #ListContainsNoCase(exampleList, "oranges")# in this list. </cfoutput> |
ListDeleteAtListDeleteAt ( list , position [, delimiters ]) DescriptionDeletes an element from a list at the specified index position. Example<cfset exampleList = "Apples, Oranges, Grapes, Pears, Mangoes"> <cfoutput> Oranges is gone from the list: #ListDeleteAt(exampleList, 2)#. </cfoutput> |
ListFindListFind ( list , value [, delimiters ]) DescriptionDetermines the index of the first list element in which a specified value occurs. This is a case-sensitive search. Example<cfset exampleList = "Apples, apples, Oranges, Grapes, Pears, Mangoes"> <cfoutput> Apples is the number # ListFind(exampleList, "Apples")# element in the list. </cfoutput> |
ListFindNoCaseListFindNoCase ( list , value [, delimiters ]) DescriptionA non-case-sensitive index of the first list element in which a specified value occurs. Example<cfset exampleList = "apples, Apples, Oranges, Grapes, Pears, Mangoes"> <cfoutput> Apples is the number: # ListFind(exampleList, "Apples")# element in the list. </cfoutput> |
ListFirstListFirst ( list [, delimiters ]) DescriptionGets the first element of a list. Example<cfset exampleList = "Apples, Oranges, Grapes, Pears, Mangoes"> <cfoutput> #ListFirst(exampleList)# </cfoutput> |
ListGetAtListGetAt ( list , position [, delimiters ]) DescriptionReturns a list element at the specified position in the parameters. Example<cfset exampleList = "Apples, Oranges, Grapes, Pears, Mangoes"> <cfoutput> #ListGetAt(exampleList, 3)# </cfoutput> |
ListInsertAtListInsertAt ( list , position , value [, delimiters ]) DescriptionInserts an element into a list at a specified index position. Example<cfset exampleList = "Apples, Oranges, Grapes, Pears, Mangoes"> <cfoutput> #ListInsertAt(exampleList, "3", "Cranberry")# </cfoutput> |