Stencil comparision

Can I set the stencil comparision with a MaterialPropertyblock?

To my knowledge, no.

Nothing outside of a CGPROGRAM block can be modified by the MaterialPropertyBlock. So anything like Stencil[_Value] or ZWrite[_Value] won’t work.