Skip request in pre-request script

Is it possible to skip the request if a variable matches a criteria in the pre-request script?
So let´s say if variable XY is 123 skip this request, otherwise send the request.

Thanks,
Philipp

Hi @ger0001p,

You can build request workflows based on conditionals using postman.setNextRequest() in the pre-request scripts as explained here: postman.setNextRequest() ignore other requests in collections.

More useful links: