mutliple if conditions in javascript
I am having multiple conditions in if as bellow
if((readCookie("endData") != "" && readCookie("lastRowArray") != "" &&
readCookie("histClickedImgId") != "" && readCookie("histClickedPage") !=
"" && readCookie("remove_count") != "" && readCookie("histBack") != "") &&
(readCookie("endData") && readCookie("lastRowArray") &&
readCookie("histClickedImgId") && readCookie("histClickedPage") &&
readCookie("remove_count") && readCookie("histBack") )){ cdtChecked =
true;
}
Is there any way to reduce the code.
No comments:
Post a Comment