Sometimes a particular boolean variable can affect several layers. And some of that layers may require inverted visibility state. E.g. Layer 1 is visible when the variable is truthy and Layer 2 is visible when the same varaible is falsy.
Let’s say, we have a multiselect field with a dropdown. When we select the first option, it should be added into the input as a label (label layer becomes visible). But also this option should be removed from the dropdown list as it’s no longer availiable for selection (option layer becomes hidden). So, both states depend on the same variable, but their conditions are inverted.
It would be nice to have some negation operator when applying a varaible. Kinda logical not
(!) in JS: ! isSelected
. Or just allow us to apply boolean expressions as we do in prototypes , e.g. isSelected != true
.