MACROMEDIA COLDFUSION MX 61-CFML Reference page 593

Cfml reference
Hide thumbs Also See for COLDFUSION MX 61-CFML:
Table of Contents

Advertisement

<!--- wait to have a string for searching defined --->
<cfif IsDefined("FORM.Submit") and IsDefined("FORM.departmentName")>
<cfset myList = ValueList(SearchByDepartment.Department)>
<cfset numberInDepartment = ListValueCountNoCase(myList,
FORM.departmentName)>
<cfif numberInDepartment is 0>
<h3>There are no employees in <cfoutput>#FORM.departmentName#</
cfoutput></h3>
<cfelseIf numberInDepartment is 1>
<cfoutput><p>There is only one person in #FORM.departmentName#.
</cfoutput>
<cfelse>
<cfoutput><p>There are #numberInDepartment# people in
#FORM.departmentName#.
</cfoutput>
</cfif>
</cfif>
ListValueCountNoCase
593

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion mx

Table of Contents