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

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

Fork me on GitHub