<html>
<head>
<link href="mmres://user_interface_reference.css" rel="stylesheet" type="text/css">
<title>ISSTRUCT</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
   <div id="Description">
   <table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
      <tr> 
         <td valign="top" class="name">ISSTRUCT</td>
         <td valign="top" nowrap class="compatibility">&nbsp;</td>
      </tr>
      <tr>
         <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
      </tr>


    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Description</span>
<p>
Determines whether a variable is a structure.
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Returns</span>
<p>
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).
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Category</span>
<p>
Decision functions, Structure functions
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Function syntax</span><pre>IsStruct(variable)
</pre>    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">See also</span>
<p>
Structure functions; "Modifying a ColdFusion XML object" in Chapter&#160;35, "Using XML and WDDX," in ColdFusion MX Developer's Guide
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">History</span>
<p>
ColdFusion&#160;MX: Changed behavior: this function can be used on XML objects.
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Parameters</span>
<p>

</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Example</span><pre>&lt;!--- This view-only example shows the use of IsStruct. ---&gt;
&lt;p&gt;This file is similar to addemployee.cfm, which is called by StructNew,
StructClear, and StructDelete. It is an example of a custom tag used to
add employees. Employee information is passed through the employee
structure (the EMPINFO attribute). In UNIX, you must also add the Emp_ID.
&lt;!--- 
&lt;cfswitch expression = &quot;#ThisTag.ExecutionMode#&quot;&gt;
  &lt;cfcase value = &quot;start&quot;&gt;
   &lt;cfif IsStruct(attributes.EMPINFO)&gt;
   &lt;cfoutput&gt;Error. Invalid data.&lt;/cfoutput&gt;
   &lt;cfexit method = &quot;ExitTag&quot;&gt;
   &lt;cfelse&gt;
   &lt;cfquery name = &quot;AddEmployee&quot; datasource = &quot;cfdocexamples&quot;&gt;
   INSERT INTO Employees
   (FirstName, LastName, Email, Phone, Department)
   VALUES 
   &lt;cfoutput&gt;
   (
   `#StructFind(attributes.EMPINFO, &quot;firstname&quot;)#' ,
   `#StructFind(attributes.EMPINFO, &quot;lastname&quot;)#' ,
   `#StructFind(attributes.EMPINFO, &quot;email&quot;)#' ,
   `#StructFind(attributes.EMPINFO, &quot;phone&quot;)#' ,
   `#StructFind(attributes.EMPINFO, &quot;department&quot;)#'
   )
   &lt;/cfoutput&gt; 
   &lt;/cfquery&gt;
&lt;/cfif&gt;
&lt;cfoutput&gt;&lt;hr&gt;Employee Add Complete&lt;/cfoutput&gt;
&lt;/cfcase&gt;
&lt;/cfswitch&gt; ---&gt;
</pre>
         </td>
      </tr>
   </table>
   </div>
<div id="VARIABLE">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">VARIABLE</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>


<p>Variable name</p>

  </td>
  </tr>
  </table>
</div>

  </body>
</html>
