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++){

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.