JRS: In article <cc*********@drn.newsguy.com>, seen in
news:comp.lang.javascript, Lee <RE**************@cox.net> posted at Thu,
1 Jul 2004 10:50:45 :
Sugapablo said:
if(document.varArray1[q].varArray2[q].checked == TRUE) {
Note that there's no need to compare a boolean to true.
Its own value will always be the value of the comparison.
ISTM that he's not comparing it to true, but to TRUE, which is a
variable, possibly defined. In principle, it could be defined as
TRUE = !!Math.round(Math.random())
It is == true that he should not be using, not == TRUE .
--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 MIME. ©
Web <URL:http://www.merlyn.demon.co.uk/> - FAQish topics, acronyms, & links.
Proper <= 4-line sig. separator as above, a line exactly "-- " (SonOfRFC1036)
Do not Mail News to me. Before a reply, quote with ">" or "> " (SonOfRFC1036)