Check if entity belongs to category, apply attributes respectively

On a blog post's page, I would like to write some logic as follows:

{{ if categoriesList contains "marketing" }}
<input type="checkbox" name="marketing" checked>
{{ else }}
<input type="checkbox" name="marketing">
{{ /if }}

Could anyone please point me in the right direction? My apologies, I'm sure this is ridiculously simple but I've been searching for quite some time and can't seem to find a solution.

Answered by John Furrow!
>>>>>>> Answered <<<<<<<
1 Reply
1 Follower