Mix "Masked Material" and "Translucent Material"

You can use If node to replicate mask mode behaviour:

Basically the MaskMode sets opacity to 0 or 1 if value is greater or lower than the material’s OpacityMaskClip attribute.

I just needed this same result and realized this could be done.