Skip to main content

EXACT

Checks whether two text strings are exactly the same, and returns - true or - false. This function is case-sensitive.

Syntax

expression.EXACT(arg1, arg2);

expression - A variable that represents a ApiWorksheetFunction class.

Parameters

NameRequired/OptionalData typeDefaultDescription
arg1RequiredApiRange | ApiName | stringThe first text string.
arg2RequiredApiRange | ApiName | stringThe second text string.

Returns

boolean

Example

Check whether two text strings are exactly the same, and return true or false. This function is case-sensitive in a spreadsheet.

// Compare two text strings with case sensitivity.

// Verify if two texts are identical using EXACT function in a spreadsheet.

let worksheet = Api.GetActiveSheet();
let func = Api.WorksheetFunction;
worksheet.GetRange("A1").SetValue(func.EXACT("MyPassword", "mypassword"));