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

isStruct 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


Fork me on GitHub