NOT
Checks if the specified logical value is true or false. The function returns true if the argument is false and false if the argument is true.
Syntax
expression.NOT(arg1);
expression
- A variable that represents a ApiWorksheetFunction class.
Parameters
Name | Required/Optional | Data type | Default | Description |
---|---|---|---|---|
arg1 | Required | ApiRange | ApiName | number |
Returns
boolean
Example
const oWorksheet = Api.GetActiveSheet();
var condition = 12 < 100;
var oFunction = Api.GetWorksheetFunction();
var ans = oFunction.NOT(condition);
oWorksheet.GetRange("C1").SetValue(ans);