how to simply check if record has a specific category in bolt/twig

277 Views Asked by At

I nedd to check if record belongs to specific category "dogs". Is there some simple twig statement to do so? something like {% if 'dogs' in record %} or {% if record.category == 'dogs' %}

I cannot really find my way trought this, thnx

1

There are 1 best solutions below

1
On

Simplest solution is {% if 'dogs' in record.category %}