Subj : syncWXremix and Dial-up
To   : echicken
From : KenDB3
Date : Thu Jan 07 2016 01:54 pm

 Re: syncWXremix and Dial-up
 By: echicken to KenDB3 on Thu Jan 07 2016 01:31 pm

>>>>> var dialup = (parseInt(user.connection) > 0);

Ke>> if (dialup === 'true')
Ke>> ...should be...
Ke>> if (dialup === true)

Ke>> Triple Equals works... At some point I tried Double Equals instead
Ke>> (stil works). Should I stick with Triple? I read up on the
Ke>> difference, but not sure if one might be better than the other in
Ke>> this particular case.

ec> The difference between == and === can be pretty big in some situations.
ec> See here for a lot of info:

ec> http://tinyurl.com/paz96fe

ec> But ultimately you can just do this:

ec> if (dialup) {
ec> // If dialup is true, then this happens
ec> } else {
ec> // Otherwise this happens
ec> }

ec> I'd still recommend reading up on == vs. ===, because using both without
ec> knowing the difference would probably lead to much confusion.

That link is incredibly helpful, and I'll read through it more in depth. I
appreciate it, thank you! I tested with your suggestion, works like a champ.
I'm curious to see tbirdsradio try out the new code.

~KenDB3