---
title: "bitwise_or"
canonical: "https://support.appfire.com/space/PSCONF/15303743/bitwise_or"
format: markdown
---
> Macro (aura-html)

> Macro (table-plus)
> 
> |  |  |  |  |
> | --- | --- | --- | --- |
> | **Syntax** | bitwise_or(int1, int2) | **Package** | bitwise |
> | **Alias** |  | **Pkg Usage** | b_or(int1, int2) |

## Description

> Macro (excerpt)
> 
> Takes two numbers as operands and does OR on every bit of two numbers.

Takes two numbers as operands and does OR on every bit of two numbers. The result of OR is 1 if any of the two bits is 1.

## Parameters

> Macro (table-plus)
> 
> | Parameter name | Type | Required | Description |
> | --- | --- | --- | --- |
> | int1 | Integer | Yes | First operand. |
> | int2 | Integer | Yes | Second operand. |

## Return Type

**Integer**

The result of the bitwise operation.

## Example

```javascript
use "bitwise";
int result = b_or(int1, int2);
//------------or-----
//no package needed
int result = bitwise_or(int1, int2);
```

## See also

> Macro (contentbylabel)