YesNoFormat

Yes, for a non-zero value; No, otherwise.

YesNoFormat( value )

Returns: String

Argument Description
value
any, required

a value that can be casted to a boolean

Examples

<cfoutput>
	False: #yesnoFormat(false)#<br>
	True: #yesnoFormat(true)#<br>
	0: #yesnoFormat(0)#<br>
	1: #yesnoFormat(1)#<br>
	No: #yesnoFormat('No')#<br>
	Yes: #yesnoFormat('Yes')#
</cfoutput>

See also