--- title: "isBadOrError" description: "Tests to see whether or not the given value's quality is either bad or error." --- # isBadOrError > Tests to see whether or not the given value's quality is either bad or error. **This function is used by Ignition's Expression language.** ## Description Tests to see whether or not the given value's [quality](platform/tags/quality-codes-and-overlays/quality-codes-and-overlays.md) is either bad or error. ## Syntax `isBadOrError(value)` ### Parameters | Type | Parameter | Description | |--------|-----------|------------------------------------------------------| | Object | `value` | A value to check if its quality is either bad or error. | ### Returns **Boolean** - Returns true if the value's quality is either bad or error, or false if it is not. ## Examples ```py title="Code Snippet" isBadOrError({path/to/myTag}) //Returns 1 if the value's quality is bad or error, 0 otherwise. ```