Expression that don`t work
Hello!
I have this expression on my Opacity parameter
var a = thisComp.layer("Shape Layer 1").xPosition;
if(thisLayer.transform.xPosition == a){
0
}else{100}
Its mean that if my second shape layer will be in the same X position as first shape layer it will disappear
But expression is doesnt work
I thought that AE can`t get number from layer, but I pickwheeped his xPosition to Source Text cuz I want to check it and its work

I have no idea whats I`m doing wrong, pls help :(((
