Subj : Re: syncWXremix and Dial-up To : Digital Man From : KenDB3 Date : Sun Jan 10 2016 03:06 pm > > > This makes it through the function by grabbing the correct fallback > > > lookup. > > > Triple Equals works... At some point I tried Double Equals instead > > > (stil works). Should I stick with Triple? I read up on the difference, > > > but not sure if one might be better than the other in this particular > > > case. > > Isn't the "=== true" redundant? Saying "if (dialup)" should be enough, > > and it's just as clear as saying "if (dialup === true)", since that has > > the same meaning. > Usually, and in the case of this particular script, if(dialup) and if(dialup > == true) and if(dialup === true) are all functionally equivalent. > However, technically if(dialup) is the equivalent of: if(dialup != false), > because if dialup = 2, let's say, then if(dialup == true) or if(dialup === > true) would not execute the if-block while if(dialup) would still execute > the if-block. if(Boolean(dialup) == true) is the equivalent of if(dialup). > :-) > digital man Really great and helpful explanation. +1 ;-) ~KenDB3 --- þ Synchronet þ KD3net-Rhode Island's only BBS about nothing. http://bbs.kd3.us .