Is it possible to display content based on member labels?

Hello,

Is there a functionality to display a block of content based on a member label? The logic has been shared by someone here - Member Labels on front end.

{{#if @member.label "something"}}
  Content
{{else}}
  Different content
{{/if}}

Thanks in advance!