# Changing state of a perspective symbol depending if the valve is running or not

**URL:** <https://forum.inductiveautomation.com/t/changing-state-of-a-perspective-symbol-depending-if-the-valve-is-running-or-not/81130>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [October 29, 2023, 10:31am UTC](https://forum.inductiveautomation.com/t/changing-state-of-a-perspective-symbol-depending-if-the-valve-is-running-or-not/81130 "2023-10-29T10:31:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aivan\_Aves](https://avatars.discourse-cdn.com/v4/letter/a/9e8a1a/32.png) [@Aivan\_Aves](https://forum.inductiveautomation.com/u/Aivan_Aves)\
**Post date:** [October 29, 2023, 10:31am UTC](https://forum.inductiveautomation.com/t/changing-state-of-a-perspective-symbol-depending-if-the-valve-is-running-or-not/81130/1 "2023-10-29T10:31:39Z")

</div>

Hello,  
I wanted to change the state of a valve perspective symbol to open when the tag value linked to it is more than 0 and closed if it is 0.

 ![Screenshot 2023-08-01 201332](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/f/dff01aba660aadab9a28e955d4b44d246a85f65c.png)

---

<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:** [October 29, 2023, 1:20pm UTC](https://forum.inductiveautomation.com/t/changing-state-of-a-perspective-symbol-depending-if-the-valve-is-running-or-not/81130/2 "2023-10-29T13:20:10Z")

</div>

Create a tag binding on `props.state`.

 ![Valve map transform](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/a/0a80e2bbd800eec5ce6200564aedc0ed02eb7d8a.png)

[https://docs.inductiveautomation.com/display/DOC81/Map+Transform](https://docs.inductiveautomation.com/display/DOC81/Map+Transform)
