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

IsStruct

Last update:
May 18, 2026

Description

Determines whether a variable is a structure.
IsStruct(variable)

Returns

True, if variable is a ColdFusion structure or is a Java object that implements the java.lang.Map interface. The return value is False if the object in variable is a user-defined function (UDF).

Category

Function syntax

IsStruct(variable)

See also

Structure functions Modifying a ColdFusion XML object  in the Developing ColdFusion Applications
ColdFusion MX: Changed behavior: this function can be used on XML objects.

Parameters

ParameterDescription
variable
Variable name

Example

<cfscript>
    myStruct={}
    myStruct.name="ColdFusion"
    myStruct.version=2018
    myStruct.releaseYear=2018
    mystruct.releaseMonth="July"
    writeOutput("Is myStruct a struct: " & isStruct(myStruct) )
</cfscript>
Output
Is myStruct a struct: YES

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