Evaluates a number or Boolean value.
Yes, for a nonzero value; No for zero, false, and no Boolean values, and an empty string ("").
Decision functions, Display and formatting functions
YesNoFormat(value)
| Parameter | Description |
|---|---|
|
value |
A number or Boolean value |
<h3>YesNoFormat Example</h3>
<p>The YesNoFormat function returns non-zero values as "Yes"; zero, false and no Boolean values, and empty strings ("") as "No".
<cfoutput>
<ul>
<li>YesNoFormat(1): #YesNoFormat(1)#
<li>YesNoFormat(0): #YesNoFormat(0)#
<li>YesNoFormat("1123"): #YesNoFormat("1123")#
<li>YesNoFormat("No"): #YesNoFormat("No")#
<li>YesNoFormat(True): #YesNoFormat(True)#
</ul>
</cfoutput>
ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | KnowledgeBase | Bug Reporting
Version 7
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/coldfusion/7/htmldocs/00000676.htm