title: How write BeanShellPostProcessor script for comparing two values
body: <p>I want compare two values and pick which one is equal to second variable.
  I have written code like below in BeanShellPostProcessor</p>
  
  <pre><code>HitID = vars.get("AddPrpc139");
  b=139
  if(HitID.equals(b))
  {
  log.info("......value=");
  }else
  {
      log.info("......value=");
  }
  </code></pre>
  
  <p>But i am getting below error </p>
  
  <p>2018-11-27 14:48:53,504 ERROR o.a.j.u.BeanShellInterpreter: Error invoking bsh method: eval In file: inline evaluation of: `` HitID = vars.get("AddPrpc139"); b=139 if(HitID.equals(b)) { log.info("......val . . . '' Encountered "if" at line 4, column 1.</p>
  
  <p>2018-11-27 14:48:53,504 WARN o.a.j.e.BeanShellPostProcessor: Problem in BeanShell script: org.apache.jorphan.util.JMeterException: Error invoking bsh method: eval  In file: inline evaluation of: `` HitID = vars.get("AddPrpc139"); b=139 if(HitID.equals(b)) { log.info("......val . . . '' Encountered "if" at line 4, column 1.</p>