I am working with titanium ,
my code looks like as ,
var currentData = new Array();
if(currentData[index]!==""||currentData[index]!==null||currentData[index]!=='null')
{
Ti.API.info("is exists " + currentData[index]);
return true;
}
else
{
return false;
}
I am passing index to array currentData,
For non existing element , i am still not able to detect it using above code
&&
) between the individual conditions. – Jan Kuča Oct 28 '12 at 9:59