Is this syntactically correct.
success: function(results) {
if (results.d.Name.length > 1) {
if (!(results.d.Id > 0)){
results.d.Id = 0;
}
var html = '<img style="float:left; height:100px;" src="inc/images/'
+ results.d.Id + '.gif" />'
// more code;
}
}
OK the reason I am wanting a zero is because if the id=1235344 is not assigned I need to show the 0.gif (default image). How can I achieve this.