Re: Re: syncWXremix and Dial-up
By: tracker1 to Deuce on Sun Jan 10 2016 03:14 pm
> > dialup = "Yes"
> > if (dialup)
> > print("Yessir!")
> > if (dialip===true)
> > print("Fosho!");
>
> > Would only print "Yessir!".
>
> The following values evaluate as false in JS:
> 0, undefined, mull, NaN, false, empty string
>
> Everything else is true.
Not when testing for equality (and that was the original question). For
example: print(2==true), prints 'false'.
digital man
Synchronet "Real Fact" #40:
Synchronet's cross-platform library is called XPDEV (named before Windows XP).
Norco, CA WX: 58.8°F, 65.0% humidity, 1 mph E wind, 0.00 inches rain/24hrs
---
■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ telnet://vert.synchro.net
|