• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

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>


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint