# V8.1.9 Quality string changed, now includes description?

**URL:** <https://forum.inductiveautomation.com/t/v8-1-9-quality-string-changed-now-includes-description/50541>\
**Category:** Ignition\
**Created:** [September 1, 2021, 10:22pm UTC](https://forum.inductiveautomation.com/t/v8-1-9-quality-string-changed-now-includes-description/50541 "2021-09-01T22:22:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [September 1, 2021, 10:22pm UTC](https://forum.inductiveautomation.com/t/v8-1-9-quality-string-changed-now-includes-description/50541/1 "2021-09-01T22:22:23Z")

</div>

I just upgraded to 8.1.9 and noticed that some of my expressions checking quality don’t work. I checked the reason and it looks like quality strings now include a description of the error:

`{[default]Tank Farms/Fermenters/North/Tanks/RF207/Temperature Top/PV.quality}`  
If no found, used to return:  
Bad\_NotFound  
Now it returns:  
Bad\_NotFound(“Path ‘[default]Tank Farms/Fermenters/North/Tanks/RF207/Temperature Top/PV.quality’ not found.”)

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [September 1, 2021, 10:28pm UTC](https://forum.inductiveautomation.com/t/v8-1-9-quality-string-changed-now-includes-description/50541/2 "2021-09-01T22:28:20Z")

</div>

You probably shouldn’t rely on the String value for comparison’ sake.

---

<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 1, 2021, 10:28pm UTC](https://forum.inductiveautomation.com/t/v8-1-9-quality-string-changed-now-includes-description/50541/3 "2021-09-01T22:28:52Z")

</div>

`toInt()` on a quality code should return a consistent result. In 8.1.10 you’ll be able to safely check `qualityOf({[default]Tank Farms/Fermenters/North/Tanks/RF207/Temperature Top/PV}) = "Bad_Disabled"`.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [September 1, 2021, 10:31pm UTC](https://forum.inductiveautomation.com/t/v8-1-9-quality-string-changed-now-includes-description/50541/4 "2021-09-01T22:31:16Z")

</div>

Back in v7 I was using toInt(), however I think these values changed in v8 ☹ v8.1.10 update sounds good, I remember you saying there would be a function like that, very helpful! Do you know when it’ll be out?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [September 1, 2021, 10:31pm UTC](https://forum.inductiveautomation.com/t/v8-1-9-quality-string-changed-now-includes-description/50541/5 "2021-09-01T22:31:42Z")

</div>

You don’t even need the `toInt` in all cases, you can do a comparison like this for Bad\_NotFound, for example:

```auto
({[~]TestTag.Quality} & 0xFFFF) = 519

```

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [September 1, 2021, 10:41pm UTC](https://forum.inductiveautomation.com/t/v8-1-9-quality-string-changed-now-includes-description/50541/6 "2021-09-01T22:41:30Z")

</div>

It’s supposed to be next week if things go to plan.

The changes Paul mention will let this work:

```auto
{[default]Tank Farms/Fermenters/North/Tanks/RF207/Temperature Top/PV.quality} = "Bad_NotFound"

```

even when the actual QualityCode has been enhanced with additional info or description.

You’ll also be able to use `qualityOf` to pull the code out instead.
