Expression binding with multiple props

Hello all,

is this valid code:

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.

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.

3 Likes

I knew that... just checking :slight_smile: