How to break out of repeat loop?

.repeat(59, “counter”) {

// some conditional statements

break…???

}

In gatling i dont know the syntax . Could someone help me?

Either use an asLongAs loop, or forcefully set the loop counter to a value that will trigger the exit.