Title Block Attribute Syntax

Does anyone know if it's possible for the title block attributes to have if/else type of syntax? We are currently using custom properties to populate the title block in the drawings, but some of our properties are coming from the part or assembly custom properties, and I would like to have the ability to also enter them in the drawing properties. For example, if a part does not have its name defined in the part properties, you can define it in the drawing properties, without messing up the attributes manually or opening the part file. Likewise, if you just want to overwrite what is in the part properties for one drawing but keep the part properties, the title block will display what is in the title block first and if it's blank, the part properties will be used. Is that possible?

SolidworksDrawings And Detailing