# How to obtain tag value from Qualified Value

**URL:** <https://forum.inductiveautomation.com/t/how-to-obtain-tag-value-from-qualified-value/62089>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [July 19, 2022, 7:02pm UTC](https://forum.inductiveautomation.com/t/how-to-obtain-tag-value-from-qualified-value/62089 "2022-07-19T19:02:08Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [July 19, 2022, 7:38pm UTC](https://forum.inductiveautomation.com/t/how-to-obtain-tag-value-from-qualified-value/62089/5 "2022-07-19T19:38:23Z")

</div>

You’re requesting the tag values for a list, which is returned as a list of Qualified Values. A Qualified Value has all sorts of info including quality and the timestamp of the most recent change.  
You should modify your read to store only the value of the Qualified Value:

```auto
ID = tag[0].value

```

Edit: updated to reflect that you’re also getting a list of Qualified Values.

Relevant code:

```auto
def runAction(self, event):
	tags = system.tag.readBlocking(["[default]CylinderTag"])
	system.perspective.print("All tags: {0}".format(tags))
	system.perspective.print("QV: {0}".format(tags[0]))
	system.perspective.print("value: {0}".format(tags[0].value))		

```

Relevant output:

```auto
12:45:25.068 [Browser Thread: 60614] INFO Perspective.Designer.Workspace - All tags: [[2, Good, Thu Jul 07 18:42:50 PDT 2022 (1657244570333)]]
12:45:25.068 [Browser Thread: 60614] INFO Perspective.Designer.Workspace - QV: [2, Good, Thu Jul 07 18:42:50 PDT 2022 (1657244570333)]
12:45:25.069 [Browser Thread: 60614] INFO Perspective.Designer.Workspace - value: 2

```

---

_[View the full topic](https://forum.inductiveautomation.com/t/how-to-obtain-tag-value-from-qualified-value/62089)._
