# From one tag value create two tag value

**URL:** <https://forum.inductiveautomation.com/t/from-one-tag-value-create-two-tag-value/56520>\
**Category:** Ignition\
**Tags:** ignition79\
**Created:** [February 24, 2022, 4:00pm UTC](https://forum.inductiveautomation.com/t/from-one-tag-value-create-two-tag-value/56520 "2022-02-24T16:00:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamshidzade](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jamshidzade/32/24927_2.png) [@jamshidzade](https://forum.inductiveautomation.com/u/jamshidzade)\
**Post date:** [February 24, 2022, 4:00pm UTC](https://forum.inductiveautomation.com/t/from-one-tag-value-create-two-tag-value/56520/1 "2022-02-24T16:00:47Z")

</div>

I have a tag that I want to show in a separate tag, I create two memory tags and a gateway on read/write mode  
then I set up tag value change event to  
if currentValue.value \> 150:  
system.tag.write("[.]Benzene")  
else:  
system.tag.write("[.]Butadiene")

but its not working do you know why?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [February 24, 2022, 4:07pm UTC](https://forum.inductiveautomation.com/t/from-one-tag-value-create-two-tag-value/56520/2 "2022-02-24T16:07:54Z")

</div>

You aren’t providing a value to `system.tag.write()`, only a tagpath. You have to provide two arguments. See the docs:

[https://docs.inductiveautomation.com/display/DOC79/system.tag.write](https://docs.inductiveautomation.com/display/DOC79/system.tag.write)

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [February 24, 2022, 4:17pm UTC](https://forum.inductiveautomation.com/t/from-one-tag-value-create-two-tag-value/56520/3 "2022-02-24T16:17:11Z")

</div>

Tip: use the `</>` code formatting button on your code to preserve indents and enable syntax highlighting. You can edit your post (the pencil icon) to fix it.

---

<div class="post-metadata">

**Author:** ![jamshidzade](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jamshidzade/32/24927_2.png) [@jamshidzade](https://forum.inductiveautomation.com/u/jamshidzade)\
**Post date:** [February 24, 2022, 4:53pm UTC](https://forum.inductiveautomation.com/t/from-one-tag-value-create-two-tag-value/56520/4 "2022-02-24T16:53:06Z")

</div>

Thank you so much  
I have an analyzer. The analyzer works twice per hour and gives me a max number of benzene and other practical

I need to show operation what is those numbers, for example, I must take a max value if the analyzer reading value is less than 500 and then I must take max value if the reading value is above 500

Do you have any idea?

Thank you for your help in advance
