You need to add in code to just return if the wrong column or cell was modified.
Here is an updated script for you to try: (note I changed function name, the onEdit function name is reserved for simple triggers only, do not use it for installable triggers).
Also added an additional ui.alert to print out the value for debugging purposes, comment it out when you are happy with your testing.
function triggerOnEdit(e) {
var ui = SpreadsheetApp.getUi();
var sheetname = e.source.getSheetName();
var row = e.range.getRow();
var col = e.range.getColumn();
var edited_value = e.value;
ui.alert("Spreadsheet Editted. Sheet: " + sheetname + " Row: " + row + " Column: " + col + " Value: " + edited_value);
var ss = e.range.getSheet();
if(!(col == 10 && edited_value == "TRUE" ))
{return;}
if (ss.getRange("A"+row).getValue() == "")
{
ui.alert("Check If You Have Data In Column A ")
return;
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/6da77094-0c26-4a71-923f-c7a0d5676738n%40googlegroups.com.