# Expression binding with multiple props

**URL:** <https://forum.inductiveautomation.com/t/expression-binding-with-multiple-props/83451>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [December 21, 2023, 10:50pm UTC](https://forum.inductiveautomation.com/t/expression-binding-with-multiple-props/83451 "2023-12-21T22:50:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mdemaris](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mdemaris/32/54639_2.png) [@mdemaris](https://forum.inductiveautomation.com/u/mdemaris)\
**Post date:** [December 21, 2023, 10:50pm UTC](https://forum.inductiveautomation.com/t/expression-binding-with-multiple-props/83451/1 "2023-12-21T22:50:22Z")

</div>

Hello all,

is this valid code:

```auto
if({this.custom.zone_pez_vis} = True,
	{this.custom.misc1_lbl_bgc} = {this.custom.bgc_pink} &&
	{this.custom.misc1_lbl_txt} = 'Pez',
	{this.custom.misc1_lbl_bgc} = {this.custom.bgc_white} &&
	{this.custom.misc1_lbl_txt} = ''
)

```

It does not seem to work when I change `custom.zone_pez_vis` from `True` to `False`.

---

<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:** [December 21, 2023, 10:57pm UTC](https://forum.inductiveautomation.com/t/expression-binding-with-multiple-props/83451/2 "2023-12-21T22:57:55Z")

</div>

Expressions, by definition, can only return a single value. They are not a "true" programming language and do not have features like variable assignment.

It looks like you just need two separate bindings on the two properties you want to change when the input value is true or false.

---

<div class="post-metadata">

**Author:** ![mdemaris](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mdemaris/32/54639_2.png) [@mdemaris](https://forum.inductiveautomation.com/u/mdemaris)\
**Post date:** [December 21, 2023, 11:20pm UTC](https://forum.inductiveautomation.com/t/expression-binding-with-multiple-props/83451/3 "2023-12-21T23:20:28Z")

</div>

I knew that... just checking 🙂
