# Not able to write a string onto a memory tag using value changed function of an another tag

**URL:** <https://forum.inductiveautomation.com/t/not-able-to-write-a-string-onto-a-memory-tag-using-value-changed-function-of-an-another-tag/69185>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [January 30, 2023, 11:49pm UTC](https://forum.inductiveautomation.com/t/not-able-to-write-a-string-onto-a-memory-tag-using-value-changed-function-of-an-another-tag/69185 "2023-01-30T23:49:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bharat\_Krishnan](https://avatars.discourse-cdn.com/v4/letter/b/2acd7d/32.png) [@Bharat\_Krishnan](https://forum.inductiveautomation.com/u/Bharat_Krishnan)\
**Post date:** [January 30, 2023, 11:49pm UTC](https://forum.inductiveautomation.com/t/not-able-to-write-a-string-onto-a-memory-tag-using-value-changed-function-of-an-another-tag/69185/1 "2023-01-30T23:49:38Z")

</div>

Hi all,  
I am not able to write string "TANK" or "SEALING PLATE" to a tag named "LoadType" using the another tag's value changed script. Basically wat I want is to enter the above mentioned strings to a tag after checking the value of a tag. The script I developed works fine in the Script console. Can anyone help me out?

 ![script](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/1/81667533e5ea75fe9ab0d8383aadfacb41c7c80d.png)  
 ![script](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/7/b7f2d8bbcc85bd79dd556ea16a0ed1826dcf7c89.png)

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [January 31, 2023, 12:08am UTC](https://forum.inductiveautomation.com/t/not-able-to-write-a-string-onto-a-memory-tag-using-value-changed-function-of-an-another-tag/69185/2 "2023-01-31T00:08:51Z")

</div>

Does your gateway have the Edge Compute plugin? Tag event scripts won't run without it, I believe.

---

<div class="post-metadata">

**Author:** ![Bharat\_Krishnan](https://avatars.discourse-cdn.com/v4/letter/b/2acd7d/32.png) [@Bharat\_Krishnan](https://forum.inductiveautomation.com/u/Bharat_Krishnan)\
**Post date:** [January 31, 2023, 12:09am UTC](https://forum.inductiveautomation.com/t/not-able-to-write-a-string-onto-a-memory-tag-using-value-changed-function-of-an-another-tag/69185/3 "2023-01-31T00:09:45Z")

</div>

How can I check whether it is present or not?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [January 31, 2023, 12:37am UTC](https://forum.inductiveautomation.com/t/not-able-to-write-a-string-onto-a-memory-tag-using-value-changed-function-of-an-another-tag/69185/4 "2023-01-31T00:37:35Z")

</div>

Check the gateway webpage. I don't have an Edge license available to show a screenshot, but the status or config pages should make it pretty clear.
