Returns Boolean data as YES or NO.
YesNoFormat(value)
| Parameter |
Description |
|---|---|
| value |
A number or Boolean value |
The YesNoFormat function returns non-zero values as YES and zero values as NO.
<!--- This example shows the YesNoFormat --->
<html>
<head>
<title>YesNoFormat Example</title>
</head>
<body>
<H3>YesNoFormat Example</H3>
<P>The YesNoFormat function returns non-zero values as "YES" and zero values 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>
</body>
</html>