title: Check row if value exists
body: <pre><code>if (purchaseSheet &amp;&amp; range.getColumn() == purchasedColumn &amp;&amp; ["Yes", "No", "Repeat"].indexOf(range.getValue()) &gt; -1) {
      if (targetSheet.getRange("A:A").getValue() != taskID) {
          sheet.getRange(range.getRow(), 1, 1, sheet.getLastColumn()).copyTo(targetRange); //- moveTo
      }
  }
  </code></pre>
  
  <p>My second if statement doesn't seem to check the range to see if a row contains the same taskID.</p>
  
  <p>How do I check "Column A" to see if a value exists or not in a row?</p>