Category ID Number and Reference

This might be a silly question and have an easy answer that I’m just not finding. I will admit that my coding skills are beginner, at best.

I have a custom module for People. Each person has several categories assigned to them so I can list them in other parts of the website. I would to be able to refer to the itemCategories by their ID numbers, instead of their name.

Basically, in the People detail, I would like to have the itemCategories checked to see if it contains the category with this id number 5678, instead of the category name.

If the itemCategories contains a category with an ID number of 5678, then do [whatever].

Make sense? What am I missing?

Any assistance would be greatly appreciated.

Yes, you can just use the tag “ItemCategoryIdList”.

Thank you! That did the trick.