# Multi-State Indicator's State, driven by tag (int1)

**URL:** <https://forum.inductiveautomation.com/t/multi-state-indicators-state-driven-by-tag-int1/18561>\
**Category:** Ignition\
**Created:** [June 21, 2018, 2:29pm UTC](https://forum.inductiveautomation.com/t/multi-state-indicators-state-driven-by-tag-int1/18561 "2018-06-21T14:29:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![stan.arimah](https://avatars.discourse-cdn.com/v4/letter/s/85f322/32.png) [@stan.arimah](https://forum.inductiveautomation.com/u/stan.arimah)\
**Post date:** [June 21, 2018, 2:29pm UTC](https://forum.inductiveautomation.com/t/multi-state-indicators-state-driven-by-tag-int1/18561/1 "2018-06-21T14:29:58Z")

</div>

Hey, I have a multi-state indicator that i want to display valve states based on a tag (int1 - Byte). However i keep getting these errors;

1. If i have the state using an expression binding type with **{[Client]TagPath} + “Valve 1/Stage”**, I get an error that says **'Error Trying to coerce ‘North/Station 3B/Valve 1/stage’** to a number.

2. If i do the same above wrapping the expression with toint(), i get “ **Error executing expression binding on Valve.Valve.multi-State Indicator 1.state** ”. Details shows "**Unable to cast value: ‘North/Station 3B/Valve 1/Stage’ to a(n) Integer. Try using a failover parameter in your cast function**.

If i look at the property editor though, i see that it has the correct number of the valve’s stage. However i get that error and the multi-state indicator shows as broken.

Any ideas what i’m missing?

---

<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:** [June 21, 2018, 2:38pm UTC](https://forum.inductiveautomation.com/t/multi-state-indicators-state-driven-by-tag-int1/18561/2 "2018-06-21T14:38:58Z")

</div>

Your expression binding is yielding a string. To get the tag value, you need to use that string in an indirect tag binding.
