Google Sheets Script lookup
<p>I'm trying to make a script in google sheets that make this:</p>

<p>I have a database with "id" and "product" in the sheet named "base":</p>

<p><img src="https://i.stack.imgur.com/4CtRF.png" alt="Database"></p>

<p>In another sheet I have the "id2" and the "product2":  </p>

<p><img src="https://i.stack.imgur.com/tMOon.png" alt="Search"></p>

<p>I need to create a Script that search (vlookup I think) the "id2" in the first database and bring 'yes' or 'no' according to the product2   and put it on the obs column</p>