I am looking for a way to write something like this:
if (product.Category.PCATID != 10 && product.Category.PCATID != 11 && product.Category.PCATID != 16) { }
In a shorthand way like below, which does not work of course:
if (product.Category.PCATID != 10 | 11 | 16) { }
So is there shorthand way at all to do something similar ?