Name

IsBoolean

Synopsis

IsBoolean(value)

Returns True if the specified value can be converted to a Boolean or False if it can’t. Examples:

<CFOUTPUT>
-1: #IsBoolean(-1)#<BR>
0: #IsBoolean(0)#<BR>
1234: #IsBoolean(1234)#<BR>
abcdef: #IsBoolean('abcdef')#<BR>
true: #IsBoolean(true)#<BR>
false: #IsBoolean(false)#<BR>
yes: #IsBoolean('yes')#<BR>
no: #IsBoolean('no')#<BR>
as45sd-1: #IsBoolean('as45sd')#<BR>
!@$%^: #IsBoolean('!@$%^')#
</CFOUTPUT>

Get Programming ColdFusion 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.