# Indirect Tags - Expression

**URL:** <https://forum.inductiveautomation.com/t/indirect-tags-expression/95633>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [September 6, 2024, 1:36pm UTC](https://forum.inductiveautomation.com/t/indirect-tags-expression/95633 "2024-09-06T13:36:30Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![PythonByte](https://avatars.discourse-cdn.com/v4/letter/p/e95f7d/32.png) [@PythonByte](https://forum.inductiveautomation.com/u/PythonByte)\
**Post date:** [September 6, 2024, 1:36pm UTC](https://forum.inductiveautomation.com/t/indirect-tags-expression/95633/1 "2024-09-06T13:36:30Z")

</div>

Hello,  
Is it possible to use expression with multistate indicator and indirect tag? I currently have 3 labels stacked on top of each other, and I show its value if its greater than 0. I would like to get rid of those three labels and replace them with a multistate indicator as i will be passing indirect tags, but it seems the expression section doesn't accept {1}\Disable format.  
Has anyone been able to do an expression with indirect tags format?

Thanks

---

<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:** [September 6, 2024, 1:44pm UTC](https://forum.inductiveautomation.com/t/indirect-tags-expression/95633/2 "2024-09-06T13:44:25Z")

</div>

Oops!

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [September 6, 2024, 1:51pm UTC](https://forum.inductiveautomation.com/t/indirect-tags-expression/95633/3 "2024-09-06T13:51:53Z")

</div>

> [@Transistor](#):
>
> Perspective doesn't have a "multistate indicator"

Post is tagged as Vision?

@PythonByte

It's not clear to me exactly what the tags are being used for. Are they intended to be the state of the Multistate Indicator? Why would you need multiple tags?

To use an indirect tag binding in an expression, you would first create a custom property, use an indirect tag binding on that property. Then in the expression, you use the property to get the value of the tag.

---

<div class="post-metadata">

**Author:** ![PythonByte](https://avatars.discourse-cdn.com/v4/letter/p/e95f7d/32.png) [@PythonByte](https://forum.inductiveautomation.com/u/PythonByte)\
**Post date:** [September 6, 2024, 2:07pm UTC](https://forum.inductiveautomation.com/t/indirect-tags-expression/95633/4 "2024-09-06T14:07:16Z")

</div>

so I have a lot of equipment and I am designing a faceplate popup so when clicking on a selected device it would open up and show the related info for the selected device. One section has the following info:  
At Position  
Forward Position  
Rev Position  
It can only be one of those displayed, so I thought it would be nice to have a multistate indicator instead of stacking up labels on top of each other...I was going to nest an IF statement but the expression section doesn't accept this format {1}\AT\_POS...etc

Thanks

---

<div class="post-metadata">

**Author:** ![bschroeder](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bschroeder/32/13260_2.png) [@bschroeder](https://forum.inductiveautomation.com/u/bschroeder)\
**Post date:** [September 6, 2024, 2:11pm UTC](https://forum.inductiveautomation.com/t/indirect-tags-expression/95633/5 "2024-09-06T14:11:26Z")

</div>

So you will need to create custom properties on the template/popup itself that has the indirect bindings, and then bind the multi-state indicator to the template/popup custom properties.

---

<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:** [September 6, 2024, 2:22pm UTC](https://forum.inductiveautomation.com/t/indirect-tags-expression/95633/6 "2024-09-06T14:22:12Z")

</div>

> [@PythonByte](#):
>
> doesn't accept this format {1}\AT\_POS

That's why others are telling you to make custom properties with indirect tag bindings.

---

<div class="post-metadata">

**Author:** ![Steve\_Laubach](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/steve_laubach/32/60900_2.png) [@Steve\_Laubach](https://forum.inductiveautomation.com/u/Steve_Laubach)\
**Post date:** [September 6, 2024, 3:32pm UTC](https://forum.inductiveautomation.com/t/indirect-tags-expression/95633/7 "2024-09-06T15:32:36Z")

</div>

I think I see the disconnect with what people are telling you and what you are understanding.

You want to create a custom property for each tag you want to indirectly bind.

Use an indirect tag binding to populate each custom property (which will use the syntax you posted).

Then use the values from those properties in your expression.
