Material Issue

Hi

I wondering if I can assign a material with the "IIF ... " condition!

If yes how can i do it?

Thank you for your time

SolidworksDrawings And Detailing