title: Google Sheets Script - If or statement. Restrict onEdit to specific sheet
body: <p>Super quick question. I have this function I want to run on entire workbook, except two specific sheets.</p>
  <p>This is my code:</p>
  <pre><code>function onEdit(e) {
    var sheet = SpreadsheetApp.getActiveSheet();
    if (sheet.getName() != &quot;Total&quot; || sheet.getName() != &quot;DataRange&quot; ) { 
      someAction();
    }
  }
  </code></pre>
  <p>This just does not work, the code runs on all sheets no matter what. This is probably a noob question but.</p>