BITOR
Returns a bitwise "OR" of two numbers.
Syntax
expression.BITOR(arg1, arg2);
expression - A variable that represents a ApiWorksheetFunction class.
Parameters
| Name | Required/Optional | Data type | Default | Description |
|---|---|---|---|---|
| arg1 | Required | ApiRange | ApiName | number | The first decimal representation of the binary number to evaluate. | |
| arg2 | Required | ApiRange | ApiName | number | The second decimal representation of the binary number to evaluate. |
Returns
number
Example
This example shows how to return a bitwise "OR" of two numbers.
- Code
- Result
// How to get a result from OR operation.
// Use function to calculate bitwise "OR" operation.
let worksheet = Api.GetActiveSheet();
let func = Api.WorksheetFunction;
worksheet.GetRange("A1").SetValue(func.BITOR(23, 10));