# How to bind multiple tags on templates?

**URL:** <https://forum.inductiveautomation.com/t/how-to-bind-multiple-tags-on-templates/67152>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [December 1, 2022, 4:39pm UTC](https://forum.inductiveautomation.com/t/how-to-bind-multiple-tags-on-templates/67152 "2022-12-01T16:39:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elie\_Khananya](https://avatars.discourse-cdn.com/v4/letter/e/cab0a1/32.png) [@Elie\_Khananya](https://forum.inductiveautomation.com/u/Elie_Khananya)\
**Post date:** [December 1, 2022, 4:39pm UTC](https://forum.inductiveautomation.com/t/how-to-bind-multiple-tags-on-templates/67152/1 "2022-12-01T16:39:36Z")

</div>

hello, im hoping this is possible. I basically created a light image in templates and have multiple tags all booleans. i want to bind every tag to this template to have different colors. tag1 yellow, tag 2 red tag 3 green.

---

<div class="post-metadata">

**Author:** ![andrews](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@andrews](https://forum.inductiveautomation.com/u/andrews)\
**Post date:** [December 1, 2022, 4:51pm UTC](https://forum.inductiveautomation.com/t/how-to-bind-multiple-tags-on-templates/67152/2 "2022-12-01T16:51:59Z")

</div>

Vision or Perspective?

---

<div class="post-metadata">

**Author:** ![Elie\_Khananya](https://avatars.discourse-cdn.com/v4/letter/e/cab0a1/32.png) [@Elie\_Khananya](https://forum.inductiveautomation.com/u/Elie_Khananya)\
**Post date:** [December 1, 2022, 5:10pm UTC](https://forum.inductiveautomation.com/t/how-to-bind-multiple-tags-on-templates/67152/3 "2022-12-01T17:10:57Z")

</div>

vision

---

<div class="post-metadata">

**Author:** ![andrews](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@andrews](https://forum.inductiveautomation.com/u/andrews)\
**Post date:** [December 1, 2022, 5:20pm UTC](https://forum.inductiveautomation.com/t/how-to-bind-multiple-tags-on-templates/67152/4 "2022-12-01T17:20:28Z")

</div>

You could use the style customizer and have it activate based off of a custom property . I would steer away from boolean and use an int. i.e. 1 for red, 2 for yellow, 3 for green etc. And set the options in the style customizer based off of that value.

---

<div class="post-metadata">

**Author:** ![gnguyen](https://avatars.discourse-cdn.com/v4/letter/g/41988e/32.png) [@gnguyen](https://forum.inductiveautomation.com/u/gnguyen)\
**Post date:** [December 1, 2022, 5:22pm UTC](https://forum.inductiveautomation.com/t/how-to-bind-multiple-tags-on-templates/67152/5 "2022-12-01T17:22:17Z")

</div>

Or an expression using if or switch statement? Just put a custom property and voila.  
See [https://docs.inductiveautomation.com/display/DOC81/switch](https://docs.inductiveautomation.com/display/DOC81/switch)

---

<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:** [December 3, 2022, 12:40am UTC](https://forum.inductiveautomation.com/t/how-to-bind-multiple-tags-on-templates/67152/6 "2022-12-03T00:40:57Z")

</div>

I would personally use binEnc to create an integer and then a case statement in an expression to return a colour stored in Vision client tags

> [@gnguyen](#):
>
> switch statement

Switch is difficult to read, use case instead
