# Scripts, scripts, scripts!

**URL:** <https://community.glideapps.com/t/scripts-scripts-scripts/18965>\
**Category:** Ask for Help\
**Created:** [November 26, 2020, 6:15pm UTC](https://community.glideapps.com/t/scripts-scripts-scripts/18965 "2020-11-26T18:15:21Z")\
**Posts on this page:** 1\
**Showing post:** 142

<div class="post-metadata">

**Author:** ![Antonoff](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/antonoff/32/22045_2.png) [@Antonoff](https://community.glideapps.com/u/Antonoff)\
**Post date:** [February 25, 2021, 9:10am UTC](https://community.glideapps.com/t/scripts-scripts-scripts/18965/142 "2021-02-25T09:10:49Z")

</div>

Hi there  
I look for an example script: need to compare two tables and if it finds a match, copy the row to the third table.  
Now I have it:  
function Alarm ()  
{  
var sheet = SpreadsheetApp.openById (“id”);  
var Data1 = sheet.getSheetByName (‘Feed’);  
var Data2 = sheet.getSheetByName (‘Alarm-list’);  
var Data3 = sheet.getSheetByName (‘Notifications’);  
}  
Already suggested (thanks @ThinhDinh ) that it should be the expression “When I add to table A, if the input info matches a row in table B, write both to table A and table C, and show an in-app notification. If no, only write to table A.  
Same for table B, if the input info matches a row in table A, write both to table B and table C, and show a notification. If no, only write to table B. "  
But how to express it in the code - I don’t know.  
Help, please.

---

_[View the full topic](https://community.glideapps.com/t/scripts-scripts-scripts/18965)._
