# Change a Property Object with expression Binding in a template

**URL:** <https://forum.inductiveautomation.com/t/change-a-property-object-with-expression-binding-in-a-template/86679>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [March 1, 2024, 2:23pm UTC](https://forum.inductiveautomation.com/t/change-a-property-object-with-expression-binding-in-a-template/86679 "2024-03-01T14:23:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nbautomation](https://avatars.discourse-cdn.com/v4/letter/n/3be4f8/32.png) [@nbautomation](https://forum.inductiveautomation.com/u/nbautomation)\
**Post date:** [March 1, 2024, 2:23pm UTC](https://forum.inductiveautomation.com/t/change-a-property-object-with-expression-binding-in-a-template/86679/1 "2024-03-01T14:23:04Z")

</div>

Hi, I'm making a Template and I want to change an object property 'FillPaint'  
if CustomProperty1(From Template) is 'True' or CustomProperty2(From Template) is 'True' or 'CustomProperty3(From Template) then  
Change the Property FillPaint to a specific color...  
I think the best way is 'Expression Binding' wich allows me involve any number of component's properties and/or tags  
I'm trying to use the 'If Function' but I don't know how to assign the color to the property 'FillPaint'...  
I can do that with Expression Binding?  
Is there a better option?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [March 1, 2024, 3:06pm UTC](https://forum.inductiveautomation.com/t/change-a-property-object-with-expression-binding-in-a-template/86679/2 "2024-03-01T15:06:15Z")

</div>

Create internal template properties with the desired end colors in them.  
Then use a single expression to choose the "right" output color from each custom property.

---

<div class="post-metadata">

**Author:** ![nbautomation](https://avatars.discourse-cdn.com/v4/letter/n/3be4f8/32.png) [@nbautomation](https://forum.inductiveautomation.com/u/nbautomation)\
**Post date:** [March 1, 2024, 4:08pm UTC](https://forum.inductiveautomation.com/t/change-a-property-object-with-expression-binding-in-a-template/86679/3 "2024-03-01T16:08:12Z")

</div>

Thanks, I never had worked with internal properties, I created one Internal Property and three template parameters, so I did an expression binding for the internal property, wich if one of the template parameters is true, then Internal Property will be true, later the control of the parameter 'FillPaint' from an object was done by the Internal Property. Thanks!
