conditional execution

Hello All,

Does anyone know how to execute a step based on certain conditions?

For example, on submitting a request in the application, it takes some time to get ready for the next step. So it requires waiting till it becomes active.

Putting pause time solves the requirement, but that is not the correct way, if a job becomes ready faster, the thread keeps on waiting till the pause time is over.

So can help here or any gatling documentation available for the same?