# system.tag.writeToTag

**URL:** <https://forum.inductiveautomation.com/t/system-tag-writetotag/5260>\
**Category:** Ignition\
**Created:** [October 10, 2012, 8:15pm UTC](https://forum.inductiveautomation.com/t/system-tag-writetotag/5260 "2012-10-10T20:15:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Messias](https://avatars.discourse-cdn.com/v4/letter/m/9de053/32.png) [@Messias](https://forum.inductiveautomation.com/u/Messias)\
**Post date:** [October 10, 2012, 8:15pm UTC](https://forum.inductiveautomation.com/t/system-tag-writetotag/5260/1 "2012-10-10T20:15:31Z")

</div>

Hi.

I´d like to know how to use this system tag excluding severral tags example:

system.tag.writeToTag("[Client]BM\_Data\_Screen/Selected Line"," 202 and 208 ")

excluding for instance 205 and 207.

How can i do that?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Michael.Stofan](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/michael.stofan/32/3342_2.png) [@Michael.Stofan](https://forum.inductiveautomation.com/u/Michael.Stofan)\
**Post date:** [October 10, 2012, 8:39pm UTC](https://forum.inductiveautomation.com/t/system-tag-writetotag/5260/2 "2012-10-10T20:39:24Z")

</div>

I think what you’d want here is something like this:

```auto
tag_list = ["[Client]BM_Data_Screen/Selected Line 202","[Client]BM_Data_Screen/Selected Line 208"]
value_list = [0,1]
system.tag.writeToTags(tag_list, value_list)
```

You could also use a loop to generate your list of tags/values if there are too many to do by hand.
