Cannot breakout of foreach loop in scala
问题 i have this below code > .foreach("${plist}", "newshole") { > exec( > http("get the user id") > .get("${newshole}/jcr:content.1.json") > .headers(headers_2) > .check(bodyString.saveAs("Res1")) > ) > exec(session => { > var mynewshole = session("Res1").as[String] > if (!mynewshole.contains("testingInProgress")) { > println("Doesn't contain: " + mynewshole) > (http("post the user id") > .post("${newshole}/jcr:content") > .headers(headers_2) > .formParam("testingInProgress", session.userId)) >