How to Use JMeter While Controller
JMeter's While controller is best suited for advanced scripts which simulate realistic user behaviors. It allows to define a behavior which occurs on a certain condition. Designing realistic behaving users involves designing users whose behavior depends on the server responses, and act accordingly.
This post explores in details various JMeter While usages and explains them thoroughly.