title: Display a Message box based on a value in a cell in Google spreadsheet
body: <p>I am trying to display a browser message box based on a particular value in range. I tried with the following</p>
  
  <pre><code>function onEdit(e){
    var sheet = SpreadsheetApp.getActiveSheet();
    var panType = sheet.getRange("A4:A100").getValues();
    if (panType=="CSF");
    Browser.msgBox('Make sure you enter the PAN No in the alloted slot');
  }
  </code></pre>
  
  <p>But the problem is, with each and every edit in any cell, the message box pops up. </p>
  
  <p>The said range <code>A4:A100</code> has a validation dropdown with options like "<strong>New</strong>" and "<strong>CSF</strong>". So whenever the value <strong>CSF</strong> is chosen, the dialogue box should popup.</p>
  
  <p>Thanks</p>