# System.tag.write()

**URL:** <https://forum.inductiveautomation.com/t/system-tag-write/9422>\
**Category:** General Discussion\
**Created:** [December 9, 2014, 7:18pm UTC](https://forum.inductiveautomation.com/t/system-tag-write/9422 "2014-12-09T19:18:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pstojakovic](https://avatars.discourse-cdn.com/v4/letter/p/e68b1a/32.png) [@pstojakovic](https://forum.inductiveautomation.com/u/pstojakovic)\
**Post date:** [December 9, 2014, 7:18pm UTC](https://forum.inductiveautomation.com/t/system-tag-write/9422/1 "2014-12-09T19:18:41Z")

</div>

Is it possible to prevent writing to the tag based on a specific number I don’t want to write to tag. How would I script that?

Thanks.

---

<div class="post-metadata">

**Author:** ![diat150](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@diat150](https://forum.inductiveautomation.com/u/diat150)\
**Post date:** [December 9, 2014, 7:56pm UTC](https://forum.inductiveautomation.com/t/system-tag-write/9422/2 "2014-12-09T19:56:05Z")

</div>

where does the number that you dont want to write come from?

---

<div class="post-metadata">

**Author:** ![nmudge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nmudge/32/3394_2.png) [@nmudge](https://forum.inductiveautomation.com/u/nmudge)\
**Post date:** [December 10, 2014, 12:14am UTC](https://forum.inductiveautomation.com/t/system-tag-write/9422/3 "2014-12-10T00:14:02Z")

</div>

Like this:

```auto
if num != 10:
	system.tag.write(tagPath,num)
```

10 being the number that you don’t want to write to the tag.
