title: Passing only the required rows of data from CSV file to Jmeter based on a criteria
body: <p>I have a csv file which has the input in the below format (It has no headers as first row):</p>
  
  <pre><code>India,QA,1200,
  India,QA1,1201,
  India,QA2,1202,
  USA,Dev1,5580,
  USA,Dev2,5580,
  AUS,Dev3,3300,
  AUS,Dev4,3301,
  </code></pre>
  
  <p>I have configured the <code>CSV Data Set Config</code> component and have given the respective path and variable name details. Snapshot below:</p>
  
  <p><a href="https://i.stack.imgur.com/fSvXA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fSvXA.png" alt="enter image description here"></a></p>
  
  <p>from the command line argument, i will be invoking the Jmeter <code>jmeter.bat -t C:\Users\Dev\Desktop\JI\testscript.jmx -JCountry=India</code>which also has a parameter called <code>JCountry=India</code>.</p>
  
  <p>Now, I have to use this value (India) and then search the csv file's first column and if it matches, I need to send only those particular rows matching to the country name given from the cmd to the script.</p>
  
  <p>I thought of using <code>If Controller</code> but how can I check the csv files first row and when there is a match, send those details to the script. </p>