bitOr

Description

Performs a bitwise logical OR operation.

Categories

Related

Syntax

BitOr(number1, number2)

Attributes

AttributeDescriptionRequiredDefault
number132-bit signed integer
number232-bit signed integer

Returns

A number; the bitwise OR of two long integers.

Usage

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

Example

<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></p>