> 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.
--
Michael J. Ryan
tracker1(at)gmail.com
+o Roughneck BBS
---
■ Synchronet ■ RoughneckBBS - http://www.roughneckbbs.com/
|