# Perspective- Trying to set color to pipes through tag status

**URL:** <https://forum.inductiveautomation.com/t/perspective-trying-to-set-color-to-pipes-through-tag-status/110793>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [September 19, 2025, 5:37pm UTC](https://forum.inductiveautomation.com/t/perspective-trying-to-set-color-to-pipes-through-tag-status/110793 "2025-09-19T17:37:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dale\_Carr](https://avatars.discourse-cdn.com/v4/letter/d/ac8455/32.png) [@Dale\_Carr](https://forum.inductiveautomation.com/u/Dale_Carr)\
**Post date:** [September 19, 2025, 5:37pm UTC](https://forum.inductiveautomation.com/t/perspective-trying-to-set-color-to-pipes-through-tag-status/110793/1 "2025-09-19T17:37:38Z")

</div>

Hi again,

I have been learning quite a bit by making various displays in Ignition Perspective, but the thought of writing expression scripts for changing component behavior so far I have avoided! I would like to change the coloring of duct-work that I made using pipe segments from inactive, which is just a static grey, to green when default bit B83:0/1 is high… I would appreciate any tips or help! I have checked out the videos in the university and I still run into problems.  
Thanks!

---

<div class="post-metadata">

**Author:** ![ryan.white](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan.white/32/73193_2.png) [@ryan.white](https://forum.inductiveautomation.com/u/ryan.white)\
**Post date:** [September 19, 2025, 5:51pm UTC](https://forum.inductiveautomation.com/t/perspective-trying-to-set-color-to-pipes-through-tag-status/110793/2 "2025-09-19T17:51:42Z")

</div>

Use an `if` statement in an expression binding on the `fill` property of the pipe you want to change colors of.

Your `if` statement should be something along the lines of  
`if({path/to/driving/tag}, "#008000", "#ABABAB")`

You should take this chance to familiarize yourself with the expression syntax:

> **[Expression Language and Syntax | Ignition User Manual](https://www.docs.inductiveautomation.com/docs/8.1/platform/expression-language-and-syntax)**
>
> Expression Language

Binding types information:

> **[Bindings in Perspective | Ignition User Manual](https://www.docs.inductiveautomation.com/docs/8.1/ignition-modules/perspective/working-with-perspective-components/bindings-in-perspective)**
>
> Perspective allows for numerous types of bindings to allow for the dynamic updating of properties associated with Views or their child components.

> [@Dale\_Carr](#):
>
> I still run into problems.

If you post examples of what you have tried so far, we may be able to point out where you appear to be struggling and explain the correct method and reason behind it.

---

<div class="post-metadata">

**Author:** ![Dale\_Carr](https://avatars.discourse-cdn.com/v4/letter/d/ac8455/32.png) [@Dale\_Carr](https://forum.inductiveautomation.com/u/Dale_Carr)\
**Post date:** [September 19, 2025, 5:58pm UTC](https://forum.inductiveautomation.com/t/perspective-trying-to-set-color-to-pipes-through-tag-status/110793/3 "2025-09-19T17:58:47Z")

</div>

Thanks Ryan,

I will revisit the expression and bindings section in the manual and follow your example.

Appreciate it!

---

<div class="post-metadata">

**Author:** ![David\_Stone](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/david_stone/32/79749_2.png) [@David\_Stone](https://forum.inductiveautomation.com/u/David_Stone)\
**Post date:** [September 19, 2025, 6:53pm UTC](https://forum.inductiveautomation.com/t/perspective-trying-to-set-color-to-pipes-through-tag-status/110793/4 "2025-09-19T18:53:17Z")

</div>

> [@Dale\_Carr](#):
>
> bit B83:0/1

As a side note, it would be considered best practice to update imported tags to have human readable tag names. It will make troubleshooting and future updates much easier for you when you don't have to go back to look at the PLC code to work out what that bit does.  
`ductActive` or similar makes it very clear what a true value means and what it relates to.
