isStruct
Determines whether a variable is a structure. True, if variable is a CFML structure or is a Java object that implements the java.lang.Map interface. Returns False if the object in variable is a user-defined function (UDF).
isStruct(variable) → returns boolean
Argument Reference
variable any Required
Examples Sample code invoking the isStruct function
Returns true if variable is a ColdFusion structure or is a Java object that implements the java.lang.Map interface.
isStruct( structNew() ) Expected Result: true
Returns false is the object in the variable parameter is a user-defined function UDF). In the example below exponent is a function created by the user
isStruct( arrayNew(1) ) Expected Result: false
© 2012–present Foundeo, Inc. and the CFDocs contributors.
Licensed under the MIT License.
ColdFusion is a trademark of Adobe Systems Incorporated.
https://cfdocs.org/isstruct