# How to locate the number 'value' of a Tag's Data Quality

**URL:** <https://forum.inductiveautomation.com/t/how-to-locate-the-number-value-of-a-tags-data-quality/26840>\
**Category:** Ignition\
**Created:** [July 24, 2019, 5:13pm UTC](https://forum.inductiveautomation.com/t/how-to-locate-the-number-value-of-a-tags-data-quality/26840 "2019-07-24T17:13:21Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [September 4, 2020, 4:12pm UTC](https://forum.inductiveautomation.com/t/how-to-locate-the-number-value-of-a-tags-data-quality/26840/9 "2020-09-04T16:12:47Z")

</div>

You shouldn’t use string comparison _or_ integer comparison. In the vast majority of cases, it’s preferable to use the dedicated methods on [`QualityCode`](http://files.inductiveautomation.com/sdk/javadoc/ignition80/8.0.14/com/inductiveautomation/ignition/common/model/values/QualityCode.html#isGood()) - `isGood()`, `isBad()`, etc directly:

`system.tag.read("TagPath").quality.isGood()`  
Or, thanks to Jython:  
`system.tag.read("TagPath").quality.good`

If you actually need to check for a specific quality code, then you should use `is` against a static member of the `QualityCode` class:

```python
from com.inductiveautomation.ignition.common.model.values import QualityCode
system.tag.read("TagPath").quality.is(QualityCode.Bad_Failure)

```

---

_[View the full topic](https://forum.inductiveautomation.com/t/how-to-locate-the-number-value-of-a-tags-data-quality/26840)._
