here is my code
def s = vars.get("response");
s.max();
here in the above the function max() is able to find the maximum value in 3 digit but it is not finding the four digit value why?
could it be that all elements in s array are strings?
so your max value is max lexigraphic value
try (if you are sure all the elements you are getting are numbers)
s.max {it.toFloat()}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.