How to bind multiple tags on templates?

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.

Vision or Perspective?

vision

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.

2 Likes

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

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

Switch is difficult to read, use case instead

1 Like