# Set Next Request if certain criteria met?

**URL:** <https://community.postman.com/t/set-next-request-if-certain-criteria-met/5026>\
**Category:** Help Hub\
**Tags:** collections\
**Created:** [April 17, 2019, 9:34am UTC](https://community.postman.com/t/set-next-request-if-certain-criteria-met/5026 "2019-04-17T09:34:18Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [April 17, 2019, 10:11am UTC](https://community.postman.com/t/set-next-request-if-certain-criteria-met/5026/2 "2019-04-17T10:11:45Z")

</div>

Hey @Natasha.HildrewBrown,

Thank you for the question.

You should be able to achieve this with an `if` statement within the `Tests` tab, to control the workflow.

```
if(gameComplete) {
    postman.setNextRequest("Path 1");
} else {
    postman.setNextRequest("Path 2");
}

```

Something basic like this should work when running the Collection in the Runner.

---

_[View the full topic](https://community.postman.com/t/set-next-request-if-certain-criteria-met/5026)._
