If into marging of stack group

I have a formula (if with "or") into marging of stack group than is not updates marging size. I must to use a textfield with same expresion to force update the value (Workaround).

Can you provide an example? What formula are you using?

The expression is:

$if(gv(CoutEv)=1 | gv(View_1)!="EVENTS",0,5)$

Where CountEv is a switch and View_1 is a List with 3 String values. Into editor works fine but not into desktop...