Jmeter property get/put issue
<p>I have the following flow,</p>

<p><code>Thread Group 1
    -JSR223 Sampler - props.put("x",10);
 Thread Group 2
    Number of threads(users) = ${__P("x")}</code></p>

<p>I am setting a property value which is not defined in any property file as 10. I am trying to use that value in the next thread group. But instead of ten threads, I get only 1 thread to start. </p>

<p>Documentation says ${__P()} would give 1 if the property is undefined. How can I set the THread Group 2's thread count to x value?</p>