How to set material property as a function of split unknown variable?

I would suggest using ufl.conditional, see for instance: Unable to use conditional module - #2 by dokken, Form compilation — FEniCS Tutorial @ Sorbonne or various other posts on the forum regarding conditionals.