YesNoFormat

Description

Returns Boolean data as YES or NO.

Category

Decision functions

Syntax

YesNoFormat(value) 

Parameters

Parameter
Description
value
A number or Boolean value

See also

IsBinary, IsNumeric

Usage

The YesNoFormat function returns non-zero values as YES and zero values as NO.

Example

<!--- 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>