Whatever message this page gives is out now! Go check it out!

Structure functions

Last update:
May 18, 2026
FunctionDescription
DuplicateReturns a clone, also known as a deep copy, of a variable.
IsStructChecks if a variable is a structure.
StructAppendAppends one structure to another.
StructClearRemoves all data from a structure.
StructCopyCopies a structure.
StructCountCounts the keys in a structure.
StructDeleteRemoves an element from a structure.
StructEachLoops over elements in a structure by accessing key-value pairs.
StructFindDetermines the value associated with a key in a structure.
StructFindKeySearches recursively through a substructure of nested arrays, structures, and other elements, for structures whose keys match the search key in the value parameter.
StructFindValueSearches recursively through a substructure of nested arrays, structures, and other elements for structures with values that match the search key in the value parameter.
StructFilterFilters the key-value pairs in a struct.
StructGetReturns a value in a structure or a structure in the specified path.
StructGetMetadataGets metadata for key(s) in a struct.
StructInsertInserts a key-value pair into a structure.
StructIsCaseSensitiveDetermines whether a struct is case-sensitive.
StructIsOrderedDetermines whether a struct is ordered or not.
StructIsEmptyChecks if a structure is empty.
StructKeyArrayReturns the keys in a CFML structure as an array.
StructKeyExistsChecks if any key exists in a structure.
StructKeyListExtracts keys from a CFML structure.
StructMapIterates over every entry of the Struct and calls the closure function to work on the key value pair of the struct. The returned value will be set for the same key in a new struct and the new struct will be returned.
StructNewCreates a structure object.
StructSetMetadataSets metadata for key(s) in a struct.
StructSortSorts the keys in a structure.
StructReduceIterates over every entry of the struct and calls the closure to work on the key value pair of the struct.
StructToSortedConverts any struct to a sorted struct.
StructUpdateUpdates a struct key with a value.

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page