I want to make a script to get the google sheet populates a dialog box alert and if possible, sends an email on the condition that a particular cell value (say A1 is larger than A2) and since the A1 and A2 value depend on the query returns from google finance, their cell value should update automatically, I am wondering if the Onedit functionis the right route, or are there any ways to do it properly?
I shall be grateful if anyone could provide a simple example of how should it be done.
Thank you in advance, appreciate your time.