Hiding an element depending on if a user has a badge

Hi, only logged-in users have access to the website. When the user opens a page, I need a button to be hidden if the user has a specific badge.

Could somebody help me construct this if-statement code?