Yeah I tried that first and it didn't work...then I tested it out on the line below it...was thinking maybe that code would work, but I was wrong. For some odd reason
else if ( output[i] == file.name )
will not work, but the following does..
else if ( "5.jpg" == file.name )
5.jpg5.jpg ===> is the output I get from