title: Email notification in jenkins based on a script output
body: <p>I am stuck at a point where I run a perl script through jenkins and I want a conditional email notification to be sent.</p>
  
  <p>For eg ..
  if at the end of script the value of a certain variable is > 1 then send the email notification 
  else 
  dont send </p>
  
  <p>Can anybody help me with this ? or knows a better way to do this ?</p>