How do I hide buttons on a widget due to in-game circumstance?

Could you please show a screenshot of how you’re doing it? We must see how you set the value of this variable:

image