robert_gsfame Posted July 20, 2010 Share Posted July 20, 2010 I try both of this n gave me different result :confused: if(paging!=="0"){ var pagex="¤tpage="+paging;}else{ var pagex="";} this will result ¤tpage=0 when paging is equal to 0 if(paging=="0"){ var pagex="";}else{ var pagex="¤tpage="+paging;} no result for this when paging is equal to 0 how come this gave different result?? Quote Link to comment Share on other sites More sharing options...
buddhika2010 Posted July 22, 2010 Share Posted July 22, 2010 if(paging!=0){ var pagex="¤tpage="+paging;}else{ var pagex="";} this will result ¤tpage=0 when paging is equal to 0 if(paging==0){ var pagex="";}else{ var pagex="¤tpage="+paging;} Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.