<% var currentImgUrl = ''; if(isLogin){ currentImgUrl = c.currentBgImgUrl(user.id); } if(currentImgUrl == 'null'){ currentImgUrl = ''; } %>