How do I create an if statement macro that can add a new custom property?

How do I create an if statement macro that would take my custom property material and add a new custom property line named R/M with a material code.

Ex:

If material =16 CRS

Then R/M = 010132000

I would like the property R/M to be added by the Macro.

SolidworksApi macros