title: vars.get command in groovy verification - jmeter
body: <p>In documentation mentioned that to see/pass variable content we should use</p>
  
  <pre><code>var2 = vars.get("var1");
  </code></pre>
  
  <p>I created a script and tried to use this get function and the value is <code>null</code>, when I printed the value of the "source" variable I see its value, can someone please explain? (as you can see when I print using get I see <code>NULL</code> returned)</p>
  
  <p>Moreover can someone please fully explained (with PIC if I may ask) how to call <code>var2</code> in a second sampler, I am facing an issues with variables in groovy and read the DOCs</p>
  
  <p><a href="https://i.stack.imgur.com/uKLtW.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uKLtW.jpg" alt="documantation"></a> </p>
  
  <p><a href="https://i.stack.imgur.com/svBRB.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/svBRB.jpg" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/0dwBh.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0dwBh.jpg" alt="enter image description here"></a></p>