Here I'm facing one problem with if controller.using JSR223 Assertion to Extract the Response in Jmeter like this it is in One Thread Group
def threadName = Thread.currentThread().getName()
threadName = threadName.substring(threadName.lastIndexOf('-') + 1)
def response = new groovy.json.JsonSlurper().parse(prev.getResponseData())
props.put('Error_code_' + threadName, response.error)
props.put('Id_value_' + threadName, response.error_description)
so it is giving like this output
Error_code_1=200
Error_code_10=400
Error_code_2=400
Error_code_3=200
Id_value_1=60218
Id_value_10=noid
Id_value_2=noid
Id_value_3=60219
in very Next Thread Group i am validating Error_code_ in side if Controller like this
"${__P(Error_code_${__counter(,)},)}"=="200"
and i am putting id_values inside Http request there are 3 Http request.So when i run script the if condition is not properly validating. it also taking 400 error code also is there any way to see what value passing if condition or print it log file or else any thing wrong in this approach please tell me is there any alternative to this stuff.please explain me with simple demo.