Can a layer be turned on or off based on a SolidWorks custom property?

Does anyone know if a layer can be turned on or off based on the value of a SW custom property?  If that property has a value like yes or no for example.  I have a single note and a single line segment on a layer that I would like to display based on a custom property value.

Thank you for your help.

SolidworksDrawings And Detailing