Karate - Conditional logic with string and array
问题 This question derives from this question asked earlier. I am making a Soap request, and I am receiving the response as either an Array, or String. [print] [ "M4205N", "M4206U" ] [print] M5967H When I get the response as an array, I figured out how to loop through it, and pass the values to another request. However, sometimes the response will come back as a single Code, and it will be returned as a String. In that case, I cannot perform the same logic as I did with the array. I've read about