var sub_user_id = ""; var isLogined = ""; if(sub_user_id == ''){ isLogined = "0"; }else if(sub_user_id != ''){ isLogined = "1"; }