# How can I tell Ignition if my tag's value is over a certain number, then have it light up my multi-state indicator?

**URL:** <https://forum.inductiveautomation.com/t/how-can-i-tell-ignition-if-my-tags-value-is-over-a-certain-number-then-have-it-light-up-my-multi-state-indicator/70188>\
**Category:** Ignition\
**Tags:** ignition79, vision\
**Created:** [February 22, 2023, 10:02pm UTC](https://forum.inductiveautomation.com/t/how-can-i-tell-ignition-if-my-tags-value-is-over-a-certain-number-then-have-it-light-up-my-multi-state-indicator/70188 "2023-02-22T22:02:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brittany\_Villasenor](https://avatars.discourse-cdn.com/v4/letter/b/e68b1a/32.png) [@Brittany\_Villasenor](https://forum.inductiveautomation.com/u/Brittany_Villasenor)\
**Post date:** [February 22, 2023, 10:02pm UTC](https://forum.inductiveautomation.com/t/how-can-i-tell-ignition-if-my-tags-value-is-over-a-certain-number-then-have-it-light-up-my-multi-state-indicator/70188/1 "2023-02-22T22:02:39Z")

</div>

I have these tags:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/0/6069315a17a4926d25dbe0594f1988f145fcdda2.png)

I'm using getBit to grab the bits from my integer tag.

My question is, for my last tag, how do I make a tag that will identify if the value is over 16384?  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/6/3657673eb6bd5b93a40444f520c032b7be3533be.png)

---

<div class="post-metadata">

**Author:** ![Brittany\_Villasenor](https://avatars.discourse-cdn.com/v4/letter/b/e68b1a/32.png) [@Brittany\_Villasenor](https://forum.inductiveautomation.com/u/Brittany_Villasenor)\
**Post date:** [February 24, 2023, 8:04pm UTC](https://forum.inductiveautomation.com/t/how-can-i-tell-ignition-if-my-tags-value-is-over-a-certain-number-then-have-it-light-up-my-multi-state-indicator/70188/3 "2023-02-24T20:04:33Z")

</div>

Granted, I am new to Ignition, but this was one I should've caught.

I did not realize I could use` if (TagWithIntValue > 16384, 1, 0)`. I was under the impression I needed to use bits and realize now I can just base my expression tag off the integer value tag that this expression tags is looking at.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [February 24, 2023, 8:08pm UTC](https://forum.inductiveautomation.com/t/how-can-i-tell-ignition-if-my-tags-value-is-over-a-certain-number-then-have-it-light-up-my-multi-state-indicator/70188/4 "2023-02-24T20:08:59Z")

</div>

Glad you worked it out, but the if statement there is redundant. You can just use `{tag} > 16384` which evaluates to true or false. You only need to use if if you're returning values other than true/false

---

<div class="post-metadata">

**Author:** ![Brittany\_Villasenor](https://avatars.discourse-cdn.com/v4/letter/b/e68b1a/32.png) [@Brittany\_Villasenor](https://forum.inductiveautomation.com/u/Brittany_Villasenor)\
**Post date:** [February 24, 2023, 8:12pm UTC](https://forum.inductiveautomation.com/t/how-can-i-tell-ignition-if-my-tags-value-is-over-a-certain-number-then-have-it-light-up-my-multi-state-indicator/70188/5 "2023-02-24T20:12:25Z")

</div>

Oh cool! I'll keep that in mind. Thanks for the tip.
