Set Next Request if certain criteria met?

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.

1 Like