# Perspective Change Script using multiple Tag

**URL:** <https://forum.inductiveautomation.com/t/perspective-change-script-using-multiple-tag/80879>\
**Category:** Ignition\
**Tags:** perspective, scripting\
**Created:** [October 23, 2023, 9:23pm UTC](https://forum.inductiveautomation.com/t/perspective-change-script-using-multiple-tag/80879 "2023-10-23T21:23:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jesse\_Minjarez](https://avatars.discourse-cdn.com/v4/letter/j/439d5e/32.png) [@Jesse\_Minjarez](https://forum.inductiveautomation.com/u/Jesse_Minjarez)\
**Post date:** [October 23, 2023, 9:23pm UTC](https://forum.inductiveautomation.com/t/perspective-change-script-using-multiple-tag/80879/1 "2023-10-23T21:23:28Z")

</div>

I've got three buttons that change colors based on the status of their tag (Buttons 4, 5, and 6). Buttons 5 and 6 have their own dedicated tag that I've bound the background color property to. However, Button\_4 does not have a tag and instead needs to illuminate when Button 5 and 6 are not illuminated. I've attempted to do this by creating a custom property called current\_tag\_value on each. When I press button 4 it will set Button\_5.custom.current\_tag\_value to 0 and Button\_6.custom.current\_tag\_value to zero.

I've then created the shown change script attached to the Button\_4.custom.current\_tag\_value, but when the other two equal zero it is not setting it to one. Any insight?

 ![Screenshot 2023-10-23 141755](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/5/d556b6e754b0c819e3fde6c684ba7b54fc7b9b4f.png)

---

<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:** [October 23, 2023, 9:54pm UTC](https://forum.inductiveautomation.com/t/perspective-change-script-using-multiple-tag/80879/2 "2023-10-23T21:54:10Z")

</div>

This should not be a script. Just an expression binding that does:

```auto
!({..path.to.prop1} || {..path.to.prop2})

```

This will be true when both props are false (== 0).

---

<div class="post-metadata">

**Author:** ![Jesse\_Minjarez](https://avatars.discourse-cdn.com/v4/letter/j/439d5e/32.png) [@Jesse\_Minjarez](https://forum.inductiveautomation.com/u/Jesse_Minjarez)\
**Post date:** [October 23, 2023, 10:04pm UTC](https://forum.inductiveautomation.com/t/perspective-change-script-using-multiple-tag/80879/3 "2023-10-23T22:04:44Z")

</div>

Thank you!
