# Change tag script

**URL:** <https://forum.inductiveautomation.com/t/change-tag-script/22070>\
**Category:** Ignition\
**Created:** [January 23, 2019, 6:51pm UTC](https://forum.inductiveautomation.com/t/change-tag-script/22070 "2019-01-23T18:51:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Schwartzds](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/schwartzds/32/6777_2.png) [@Schwartzds](https://forum.inductiveautomation.com/u/Schwartzds)\
**Post date:** [January 23, 2019, 6:51pm UTC](https://forum.inductiveautomation.com/t/change-tag-script/22070/1 "2019-01-23T18:51:51Z")

</div>

I realize this would be better programmed within the plc but was looking if it could be done through Ignition. I would like to start a pump if a tank level got to a certain level. Any suggestions on where this can be performed or script ideas would be very much appreciated.

---

<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:** [January 23, 2019, 7:11pm UTC](https://forum.inductiveautomation.com/t/change-tag-script/22070/2 "2019-01-23T19:11:06Z")

</div>

One way to do this would be to add a tag change script to a tag that represented the tank level, and inside the script just check the current value and take action if it meets whatever criteria.

That being said, this is a bad idea.
