I have written simple logic to through javascript alert if the description field on account object has some value I am displaying alert and if it null displaying different alert. But the below code throws error "Unexpected Token Else"
{!REQUIRESCRIPT("/soap/ajax/30.0/connection.js")}
{!REQUIRESCRIPT("/soap/ajax/30.0/apex.js")}
var testField='{!Account.Description}';
var checking=sforce.connection.query("select Description from account where id='001p000000AgZk7' limit 1 ");
var recs = checking.getArray("records");
for(var i=0;i<recs.length;i++){
if(recs.length < 0)
alert('empty');
}
else{
alert('filled');
}