# Binding 2 or more bits to Fill Paint property

**URL:** <https://forum.inductiveautomation.com/t/binding-2-or-more-bits-to-fill-paint-property/9654>\
**Category:** Ignition\
**Created:** [February 4, 2015, 8:22pm UTC](https://forum.inductiveautomation.com/t/binding-2-or-more-bits-to-fill-paint-property/9654 "2015-02-04T20:22:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![CA\_HMIDev](https://avatars.discourse-cdn.com/v4/letter/c/cc9497/32.png) [@CA\_HMIDev](https://forum.inductiveautomation.com/u/CA_HMIDev)\
**Post date:** [February 4, 2015, 8:22pm UTC](https://forum.inductiveautomation.com/t/binding-2-or-more-bits-to-fill-paint-property/9654/1 "2015-02-04T20:22:55Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![CPowell](https://avatars.discourse-cdn.com/v4/letter/c/a183cd/32.png) [@CPowell](https://forum.inductiveautomation.com/u/CPowell)\
**Post date:** [February 4, 2015, 8:38pm UTC](https://forum.inductiveautomation.com/t/binding-2-or-more-bits-to-fill-paint-property/9654/2 "2015-02-04T20:38:05Z")

</div>

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
