Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

Magento 2.2 show text in phtml file to only certain customer group

I am using Magento 2.2.5

I want to hide some text in a phtml file to all customer groups except one using some kind if

customer group = 4 then 
'text'
else
'other text'

It seems like it should be simple but I am struggling.

Many thanks

Comments