title: Getting values from cells in google scripts
body: <p>I am trying to make working sheets for my work. In Google scripts, I've created "Custom Menu" for my sheet wich is sending email correctly. But now I want to get value from the specific cell and check if it is below, for example, 2, send an email with that value. For now, I have this: </p>
  
  <pre><code>function onOpen() { 
    var ui = SpreadsheetApp.getUi();
    // Or DocumentApp or FormApp.
    ui.createMenu('Custom Menu')
        .addItem('First item', 'menuItem1')
        .addSeparator()
        .addToUi();
  }
  function menuItem1() {
    SpreadsheetApp.getUi() // Or DocumentApp or FormApp.
       .alert('You clicked the first menu item!');
    if( 'A1' &gt; 3){
    MailApp.sendEmail('luk...@gmail.pl', 'subject', 'message');
    }
  }
  </code></pre>
  
  <p>I don't know how to get this value from this cell. This 'If" is just an example of what I am trying to do, I know it is not working. Thank you in advance for any kind of help.</p>