OR
Checks whether any of the arguments are -true. Returns -false only if all arguments are -false.
Syntax
expression.OR(args);
expression
- A variable that represents a ApiWorksheetFunction class.
Parameters
Name | Required/Optional | Data type | Default | Description |
---|---|---|---|---|
args | Required | number | string | ApiRange | ApiName | boolean | A condition to check. |
Returns
boolean
Example
- Code
- Result
const worksheet = Api.GetActiveSheet();
worksheet.GetRange("A1").SetValue(12);
let logical1 = worksheet.GetRange("A1") < 10;
let logical2 = 34 < 10;
let logical3 = 50 < 10;
let func = Api.GetWorksheetFunction();
let ans = func.OR(logical1, logical2, logical3);
worksheet.GetRange("C1").SetValue(ans);