Well, I found an obvious work around but I still wanted to try to get this to work and it’s still a no go.
This is exactly what I have
if(thisComp.layer(“input Output”).effect(“Paint Layer”)(“Checkbox”)= 0) 0 else value
I have tried a bunch of variations. Generally always got the same error.