Skip to content
Reference > Methods

bitOr(a,b)

Definition

Number bitOr(Number a, Number b)

Description

Returns the bitwise OR (|) of two numbers.

Parameter Definition

Name Type Description
a Number param1
b Number param2

Examples

1
2
3
Integer r1 = bitOr(5,8); // r1 == 13
Integer r2 = bitOr(13,22); // r2 == 31
Object r3 = bitOr(null,17); // r3 == null