Zend certified PHP/Magento developer

how to add a check to show the button or not in the ui-components?

I need to not show the some button if my entity id (current page) = 2 (reserved value from configuration). How can I do that? I haven’t seen such an implementation in ui-components yet.