Conditionally skip a test when running a collection of over 200 requests

Hi all,

I implemented a test like:

pm.test(ā€œHas lastModifiedDateTime and IDā€, function () {
var jsonData = pm.response.json();
for(let i = 0; i < jsonData.value.length; i++){
pm.expect(jsonData.value[i]).to.have.property(ā€œidā€);
pm.expect(jsonData.value[i]).to.have.property(ā€œlastModifiedDateTimeā€);
}
});

This works (almost) fineā€¦

From the 250 request there are a few (12) which do not match, these requests do not have the 2 mentioned properties. How can I bypass this check for these 12 requests?
I can recognize the request for instance by the name, like a request named ā€˜GET entitiesā€™.

Thanks for the reply.

Regards,
Don