modern UI - change widget value only if condition met

Hi,

I try to implement a widget1 which will change its value only if another widget2 is set to a specific value. otherwise I would like to let the value of widget1 untouched. I tried to use a `@ValueProvider` (`computeFromValueSupplier(...)`) for widget1 using a

@ValueReference

of widget2 but I don’t know how to avoid a value change if my condition is not met. I don’t know how to retrieve the current value of widget1.

I assume it’s possible to get such a behavior and I would be happy if anybody could help me.

Antje