Enable/Disable Ribbon Buttons using Named Expressions?

Hi,

I am working in MicroStation CE Update15. I need to enable /disable ribbon menu buttons based on a variable value.

When i searched in community, many suggestions was can be done through "Named Expressions".

Please provide me an simple example using Named Expressions to achieve this.