> > > 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
|