I wrote a custom function called sendEmails in a script linked to a google spreadsheet. It works when I run the function through the script editor, however, it does not work when I run it through the spreadsheet.
My goal is to let the spreadsheet run without having a user and send an alert (in my case an email) automatically when a condition is met on the spreadsheet's cells.
This is the not working code:
=if(V3=X3,sendEmails(),"Waiting")
The alert can be anything that I can read using my phone or another computer.