Description

Performs a bitwise logical OR operation.

Returns

A number; the bitwise OR of two long integers.

Category

Mathematical functions

Function syntax

BitOr(number1, number2)

See also

BitAndBitNotBitXor

Parameters

Parameter

Description

number1

32-bit signed integer

number2

32-bit signed integer

Usage

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

Example

<h3>BitOr Example</h3>
<p>Returns the bitwise OR of two long integers.</p>

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

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy