Forum Discussion

Lee_M's avatar
Lee_M
Community Hero
5 years ago
Solved

breaking out of loop iteration

I have created a Data Driven loop with an if condition

 

the condition will jump to the next iteration should the criteria NOT be met, how can I break out of the current cycle ?

 

The only operation I have found in keyword is "STOP EXECUTION" which will stop the script working which is not what I am looking for

 

e.g.

 

 

loop (i=1) {

 

  if (i == 3) {

    break; 

  }

 

  // do something

 

  i++;

}