I have issues with a cell in google apps script where if a cell = "0:00" it needs to equal some text like "Unexcused Absence". when I run the code it gives me a blank cell.
function Boh() {
var sheet = SpreadsheetApp;
var ss = sheet.getActiveSpreadsheet().getActiveSheet();
var lastRow = ss.getLastRow();
var spreadsheet = SpreadsheetApp.getActive();
var b = 0;
var wCell = 'Work';
var x = new Date('3/16/2013 0:00:00');
for(var i=2;i<=lastRow;i++){
ss.getRange(i,10).activate();
if(x.setHours(0,0,0,0) == ss.getRange(i, 17).getValue() && 'Work' == ss.getRange(i, 5).getValues()){
ss.getRange(i, 10).setValue('Unexcused Absence');
}
}