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
Name | Type | Required | Default | Description |
---|---|---|---|---|
variable | any | Yes |
Returns true if variable is a ColdFusion structure or is a Java object that implements the java.lang.Map interface.
isStruct( structNew() )
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) )