<!--- This view-only example illustrates usage
      of StructIsEmpty. --->
<P>This file is identical 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).
<P>
To run this snippet
under UNIX, you must add employee ID generation logic.
<!--- 
<cfswitch expression="#ThisTag.ExecutionMode#">
   <cfcase value="start">
      <CFIF StructIsEmpty(attributes.EMPINFO)>
        <CFOUTPUT>Error. No employee data was passed.</cfoutput>
          <CFEXIT METHOD="ExitTag">
        <cfelse>
          <!--- Add the employee --->
          <!--- In UNIX, you must also add the Emp_ID --->
		  <!---
           <CFQUERY NAME="AddEmployee" DATASOURCE="cfsnippets">
            INSERT INTO Employees(FirstName, LastName, Email, Phone, Department)
              VALUES 
                <CFOUTPUT>
                  (
                    '#StructFind(attributes.EMPINFO, "firstname")#' ,
                    '#StructFind(attributes.EMPINFO, "lastname")#' ,
                    '#StructFind(attributes.EMPINFO, "email")#' ,
                    '#StructFind(attributes.EMPINFO, "phone")#' ,
                    '#StructFind(attributes.EMPINFO, "department")#'
                   )
                </cfoutput> 
          </cfquery>
        </cfif>
      <CFOUTPUT><HR>Employee Add Complete</cfoutput>
   </cfcase>
</cfswitch> --->

