I am putting together a Google Apps script which interfaces with a Google spreadsheet. I am trying to compare two different cells, but they are comparing equal.
Within my for loop, I make make the comparison
if (cell[n][0] == failureCell)
{
failureFlag = 1;
Logger.log(cell[n][0]);
Logger.log(failureCell);
}
I have also tried using the toString() method on each object, but it does not change the return values or the logger values.
The log returns
[15-01-02 18:02:40:312 PST] Value1
[15-01-02 18:02:40:313 PST] FailValue
[15-01-02 18:02:40:524 PST] Value2
[15-01-02 18:02:40:525 PST] FailValue
[15-01-02 18:02:41:235 PST] Value3
[15-01-02 18:02:41:244 PST] FailValue
Here is a screencap of the area of interest in my spreadsheet: