Microvellum Community

Valance Dimension Height Formula for section views

I have added a dim in "part properties" for showing the height of the valance. The problem with the Dim formula that I added is:
If I have a cabinet with no valance it shows 0".

How do I write a formula to turn off the Dim when there is no valance?

Any help will be much appreciated.