I am able to add a timestamp in column 5 using a conditional when I'm comparing the column to a number, but what I am actually trying to do is add a stamp to the corresponding cell in column 5 if a cell in column 1 is checked as TRUE. When the box is checked, the corresponding cell in column 5 never displays the timestamp:
function onEdit(e) { var attendanceSheet = e.source.getActiveSheet(); var row = e.range.getRow(); var col = e.range.getColumn(); if(col === true){ attendanceSheet.getRange(row,5).setValue(new Date()); } else{ attendanceSheet.getRange(row,5).setValue(""); }}
