# tag.readAll Easy probably

**URL:** <https://forum.inductiveautomation.com/t/tag-readall-easy-probably/9967>\
**Category:** Ignition\
**Created:** [April 29, 2015, 5:15pm UTC](https://forum.inductiveautomation.com/t/tag-readall-easy-probably/9967 "2015-04-29T17:15:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![billymac00](https://avatars.discourse-cdn.com/v4/letter/b/74df32/32.png) [@billymac00](https://forum.inductiveautomation.com/u/billymac00)\
**Post date:** [April 29, 2015, 5:15pm UTC](https://forum.inductiveautomation.com/t/tag-readall-easy-probably/9967/1 "2015-04-29T17:15:01Z")

</div>

I understand results returned are 3 components per Tag. After looking at the help, I just don’t understand how to just pull/use the xxx.value

So, if we have values = system.tag.readAll(taglist),

what is the scripting/format equivalent to the original individual read?

old way:  
myVal=system.tag.read(“xxxx”).value

new way??  
I understand the info for the first tag is values[0] I guess but how to grab only the value, and use it as an integer value say ?

is it values[0][0] or ???

Thanks

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [April 29, 2015, 8:15pm UTC](https://forum.inductiveautomation.com/t/tag-readall-easy-probably/9967/2 "2015-04-29T20:15:25Z")

</div>

Use values[0].value, values[1].value, etc. I often use a list comprehension in a one-liner to get just the values. Like so:

`values = [x.value for x in system.tag.readAll(listOfTags)]
`This is only suitable when you don’t need the qualities, of course.

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [April 29, 2015, 8:56pm UTC](https://forum.inductiveautomation.com/t/tag-readall-easy-probably/9967/3 "2015-04-29T20:56:44Z")

</div>

> [@billymac00](#):
>
> new way??  
> I understand the info for the first tag is values[0] I guess but how to grab only the value, and use it as an integer value say ?
> 
> is it values[0][0] or ????

To answer your question, it would be values[0].value

pturmel's method grabs just the values up front. Then it would be values[0] 😉

EDIT: Apologies to pturmel. should have read a bit closer! Time for more coffee! 😆
