Chapter 2: ColdFusion Functions
BitAnd
Returns the bitwise AND of two long integers.
See also BitNot,
Syntax
BitAnd( number1 , number2 )
number1, number2
Any long integers.
Usage
Bit functions operate on 32-bit integers.
Examples
<!--- This example shows BitAnd --->
<HTML>
<HEAD>
<TITLE>BitAnd Example</TITLE>
</HEAD>
<BODY>
<H3>BitAnd Example</H3>
<P>Returns the bitwise AND of two long integers.
<P>BitAnd(5,255): <CFOUTPUT>#BitAnd(5,255)#</CFOUTPUT>
<P>BitAnd(5,0): <CFOUTPUT>#BitAnd(5,0)#</CFOUTPUT>
<P>BitAnd(128,128): <CFOUTPUT>#BitAnd(128,128)#</CFOUTPUT>
</BODY>
</HTML>
BitOr,
and BitXor.
281
Need help?
Do you have a question about the COLDFUSION 4.5-CFML LANGUAGE and is the answer not in the manual?
Questions and answers