This layer allows you to control Layer A's visibility via Layer X's visibility. This is not opacity based - when Layer X's visibility switch is turned off, Layer A will also not be visibile.
Copy the expression to Layer A's opacity and replace "LayerX" with the controlling layer's name.