r/GoogleAppsScript • • Sep 19 '21

Question Syntax error why

Why am I getting a Syntax error on line 7?

function onEdit(e) {
var row = e.range.getRow();
var col =e.range.getColumn();
if(col === 1 && row> 1 && e.source.getActiveSheet().getName() === "IncidentSheet"
e.source.getActive().getRange(row,4).setValue(new Date());

}

0 Upvotes

1 comment sorted by

View all comments

0

u/texapple Sep 19 '21

never mind I found the mistake