TRY NEW VERSION

NOT

NOT(arg1) → { number | string | boolean }

Changes FALSE to TRUE, or TRUE to FALSE.

Parameters:

Name Type Description
arg1 boolean

Is a value or expression that can be evaluated to TRUE or FALSE.

Returns:

Type
number | string | boolean

Example

Copy code
builder.CreateFile("xlsx");

const oWorksheet = Api.GetActiveSheet();

var condition = 12 < 100;
var oFunction = Api.GetWorksheetFunction();
var ans = oFunction.NOT(condition);

oWorksheet.GetRange("C1").SetValue(ans);

builder.SaveFile("xlsx", "NOT.xlsx");
builder.CloseFile();

Resulting document