Section One BBS

Welcome, Guest.


Subject: Re: syncWXremix and Dial-up Date: Sun Jan 10 2016 02:54 pm
From: Digital Man To: tracker1

  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

---
 ■ SynchronetVertrauen Home of Synchronet telnet://vert.synchro.net

Previous Message       Next Message
In Reply To: Re: syncWXremix and Dial-up (tracker1)
Replies: Re: syncWXremix and Dial-up (Deuce)