Property Equations

Hello,

Can I create a property equation something like: value = if property x is empty then y else x?

Or can I create equations within a title block to simulate the above behavior?

Thanks

SolidworksApi macros