BitOr

Description

Returns the bitwise OR of two long integers

Category

Mathematical functions

Syntax

BitOr(number1, number2) 

See also

BitAnd, BitNot, BitXor

Parameters

Parameter
Description
number1, number2
32-bit signed integers

Usage

Bit functions operate on 32-bit integers, in the range -2147483648 to 2147483647.

Example

<!--- This example shows BitOr --->
<html>
<head>
<title>BitOr Example</title>
</head>

<body>
<H3>BitOr Example</H3>

Returns the bitwise OR of two long integers.

<P>BitOr(5,255): <cfoutput>#BitOr(5,255)#</cfoutput>
<P>BitOr(5,0): <cfoutput>#BitOr(5,0)#</cfoutput>
<P>BitOr(7,8): <cfoutput>#BitOr(7,8)#</cfoutput>

</body>
</html>