跳到主要内容

DELTA

Tests whether two numbers are equal. The function returns 1 if the numbers are equal and 0 otherwise.

Syntax

expression.DELTA(arg1, arg2);

expression - A variable that represents a ApiWorksheetFunction class.

Parameters

NameRequired/OptionalData typeDefaultDescription
arg1RequiredApiRange | ApiName | numberThe first number.
arg2OptionalApiRange | ApiName | numberThe second number.

Returns

number

Example

let worksheet = Api.GetActiveSheet();
let func = Api.GetWorksheetFunction();
worksheet.GetRange("A1").SetValue(func.DELTA(23, 24));