title: Multiple Functions on Google Script
body: <p>Thanks in advance for your time here. I am self taught and new to coding, hence apologies if the question below is something an average programmer should already know.</p>
  
  <p>Both functions when run individually work without issues.</p>
  
  <pre><code>    function onEdit(e) {
  
  var sheetToWatch= 'Sheet1',
  columnToWatch = "8,9", columnToStamp = 12; 
  
  var edited_column = e.range.getColumn();
  
  if (columnToWatch.indexOf(edited_column.toString()) === -1) {return;}
  
  if (e.source.getActiveSheet()
  .getName() !== sheetToWatch || !e.value) return;
  
  if (edited_column === 8) {
  columnToStamp = 12;
  } else if (edited_column === 9) {
  columnToStamp = 13;
  }
  
  e.source.getActiveSheet()
  .getRange(e.range.rowStart, columnToStamp)
  .setValue(new Date());
  
  } 
  </code></pre>
  
  <p>This is the first code. And works perfect. When I put data in 8 and 9 columns. Static time appear 12 and 13 columns. </p>
  
  <p>Second code is;</p>
  
  <pre><code>    function onEdit(e) {
    if (typeof e.value != 'object') {
      e.range.setValue(e.value.toUpperCase());
    }
  }
  </code></pre>
  
  <p>This code helps me the uppercase whole document. </p>
  
  <p>But 2 codes doesnt work same time. </p>
  
  <p>Can u guys help me? </p>