Name
YesNoFormat
Synopsis
YesNoFormat(value
)
Returns all nonzero values as Yes
and zero values
as No
. Also returns a Boolean
true
as Yes
and a Boolean
false
as No
.
<cfoutput> -1: #YesNoFormat(-1)#<br> -1.123: #YesNoFormat(-1.123)#<br> -0.123: #YesNoFormat(-0.123)#<br> 0: #YesNoFormat(0)#<br> 0.123: #YesNoFormat(0.123)#<br> 1: #YesNoFormat(1)#<br> 1.123: #YesNoFormat(1.123)#<br> true: #YesNoFormat(true)#<br> false: #YesNoFormat(false)# </cfoutput>
Get Programming ColdFusion MX, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.