diff --git a/ApiWorksheetFunction_NOT.js b/ApiWorksheetFunction_NOT.js new file mode 100644 index 0000000..96ed2f5 --- /dev/null +++ b/ApiWorksheetFunction_NOT.js @@ -0,0 +1,14 @@ +builder.CreateFile("xlsx"); +const oWorksheet = Api.GetActiveSheet(); + +oWorksheet.GetRange("A1").SetValue(12); + +var condition = A1 < 100; + +var oFunction = Api.GetWorksheetFunction(); +var ans = oFunction.NOT(condition); + +oWorksheet.GetRange("C1").SetValue(ans); + +builder.SaveFile("xlsx", "NOT.xlsx"); +builder.CloseFile();