# Reading a Tags Value and invrementing it by 1

**URL:** <https://forum.inductiveautomation.com/t/reading-a-tags-value-and-invrementing-it-by-1/18945>\
**Category:** Ignition\
**Created:** [July 24, 2018, 12:21pm UTC](https://forum.inductiveautomation.com/t/reading-a-tags-value-and-invrementing-it-by-1/18945 "2018-07-24T12:21:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jshaffer09](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@jshaffer09](https://forum.inductiveautomation.com/u/jshaffer09)\
**Post date:** [July 24, 2018, 12:21pm UTC](https://forum.inductiveautomation.com/t/reading-a-tags-value-and-invrementing-it-by-1/18945/1 "2018-07-24T12:21:10Z")

</div>

I am wanting to get a tags value and increment it by 1. This is what I have. It is going in to a table.  
I don’t believe it is reading the tag value

```auto
if submitSuccess ==1:
      oldData=system.tag.read("[default]Moblie/AuditsCompleted")
      newData=system.dataset.setValue(data,insertrow,"AuditNbr", oldData + 1)
      data=newData
      event.source.parent.getComponent('Table').data=data

```

---

<div class="post-metadata">

**Author:** ![JGJohnson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jgjohnson/32/29582_2.png) [@JGJohnson](https://forum.inductiveautomation.com/u/JGJohnson)\
**Post date:** [July 24, 2018, 12:35pm UTC](https://forum.inductiveautomation.com/t/reading-a-tags-value-and-invrementing-it-by-1/18945/2 "2018-07-24T12:35:15Z")

</div>

You need to get the value of the tag object that you are reading.

```auto
oldData=system.tag.read("[default]Moblie/AuditsCompleted").value

```
