It says "Type mistmatch. Required chainbuilder. Found B"
Not sure how should i return from the doIf block. Here for example purpose i have put “true” instead of actual boolean condition.
This is the example in Gatling documentation.
doIf(session => session(“myKey”).as[String].startsWith(“admin”)) { // executed if the exec(http(“if true”).get("…"))
}