TRY NEW VERSION

GESTEP

GESTEP(arg1, arg2) → { number | string | boolean }

Tests whether a number is greater than a threshold value.

Parameters:

Name Type Description
arg1 any

Is the value to test against step.

arg2 any

Is the threshold value.

Returns:

Type
number | string | boolean

Example

Copy code
builder.CreateFile("xlsx");
var oWorksheet = Api.GetActiveSheet();
var oFunction = Api.GetWorksheetFunction();
oWorksheet.GetRange("A1").SetValue(oFunction.GESTEP(-2, 2));
builder.SaveFile("xlsx", "GESTEP.xlsx");
builder.CloseFile();

Resulting document