How to skip the the same request if the condition in the pre request script match?

I tried the postman.setNextRequest();

Default behaviour is you can’t.

The pre-request script is just that, it runs before the request.

SetNextRequest only determines the request to run after the current one. (It doesn’t affect the current request).

The request will always run.

However, take a look at the following links which may or may not work for you.

Postman: Is it possible to stop a postman call from being executed based on conditions detected in pre-requisite scripts? - Stack Overflow

Stop request from sending if pre-request test fails - Help - Postman