Is there a way to invert the viewport driver on a mask modifier?

Hiya, I’m not too keen on rigging or drivers for that matter but for some reason when I add a driver to a mask modifier, it’s just inverted with the mesh. Like if I disable the mesh through the rig, the mask enables itself and then there’s nothing visible to the viewport and vice versa.

Is there any way to fix it to where if I turn off the mesh viewport then the mask viewport will be disabled as well?

Invert the calculated driver value.

How do I do that?

Open the driver editor, invert the curve.

https://docs.blender.org/manual/en/latest/editors/drivers_editor.html

it took a bit of understanding to make the graph work, but thank you so much for helping me!