Binding 2 or more bits to Fill Paint property

Hi there. I’d like to have the ‘Fill Paint’ property of a conveyor belt depend on 2 bits. When 2 bits are true, the belt is green. When either one of the 2 bits is true, the color is different (according to which 1 of the 2 bits is true). Is there a simple way to do this in Ignition? Thank you very much!

Create a custom property and bind the following expression.

binEnc({Tag1},{Tag 2})

Next bind the fill paint to the custom property. Then select what color you want for each integer.

or you can use the Style Customizer, and drive other properties including the ‘Fill Paint’ if you wanted.

Cheers,
Chris