IF statement linked to material and sketch dimension?

Hello,

Can an IF statement be created that if I'm using a specific material that I can add a number to "D1@Sketch1" ?  In other words:

IF "SW-Material" = "6061 Aluminum" then the end value would be "D1@Sketch1" + 0.03

Thank you!

SolidworksDrawings And Detailing