ISERR
Checks whether a value is an error other than <em>#N/A</em>, and returns -true or -false.
Syntax
expression.ISERR(arg1);
expression
- A variable that represents a ApiWorksheetFunction class.
Parameters
Name | Required/Optional | Data type | Default | Description |
---|---|---|---|---|
arg1 | Required | number | string | boolean | ApiRange | ApiName | The value to test.\ The value can be an empty cell, error, logical value, text, number, range, or range name. |
Returns
boolean
Example
- Code
- Result
const worksheet = Api.GetActiveSheet();
let func = Api.GetWorksheetFunction();
worksheet.GetRange("B3").SetValue("45")
let result = func.ISERROR("B3");
worksheet.GetRange("C3").SetValue(result)