# How to make a label have multiple states for HOA switch?

**URL:** <https://forum.inductiveautomation.com/t/how-to-make-a-label-have-multiple-states-for-hoa-switch/95653>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [September 6, 2024, 7:38pm UTC](https://forum.inductiveautomation.com/t/how-to-make-a-label-have-multiple-states-for-hoa-switch/95653 "2024-09-06T19:38:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aaron\_Bangle](https://avatars.discourse-cdn.com/v4/letter/a/7993a0/32.png) [@Aaron\_Bangle](https://forum.inductiveautomation.com/u/Aaron_Bangle)\
**Post date:** [September 6, 2024, 7:38pm UTC](https://forum.inductiveautomation.com/t/how-to-make-a-label-have-multiple-states-for-hoa-switch/95653/1 "2024-09-06T19:38:06Z")

</div>

Hello,  
I have an HOA and I'm wanting to make it so a single label can use the 3 PLC tags to determine what the Text is for a view. I've been looking and I'm kind of stumped. Can anyone give me any idea's or suggestions to look into please?

---

<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 7, 2024, 3:35pm UTC](https://forum.inductiveautomation.com/t/how-to-make-a-label-have-multiple-states-for-hoa-switch/95653/3 "2024-09-07T15:35:04Z")

</div>

Add three custom properties to the label component, or to the view, one for each tag. Place tag bindings (indirect if appropriate) on those properties to pull the live tag value into the UI. Place an expression binding on the label's `props.text` to generate the correct text. That expression can use multiple nested `if()` functions, or `case()` or `switch()` wrapping a `binEnum()` or `binEnc()` boolean to integer conversion.

(The user manual appendix for expression functions is your friend.)
