JRS: In article <11**********************@g10g2000cwb.googlegroups .com>
, dated Sat, 25 Mar 2006 15:15:39 remote, seen in
news:comp.lang.javascript, DoomedLung <an***********@blueyonder.co.uk>
posted :
What does this operator ">-" stand for or mean, as in...
this.ver = navigator.appVersion;
this.agent = navigator.userAgent;
this.dom = document.getElementById ? 1 : 0;
this.opera5 = this.agent.indexOf("Opera 5") >- 1;
I'm sort of a nOOb any help would much appreciated :)
It means that the author is a careless typist, who meant (one supposes)
... > -1 ;
The previous line means that the author does not understand Booleans.
The whole suggests that the application is unusual or the author is
ignorant; or both.
The first line ...
Read the newsgroup FAQ.
--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://www.jibbering.com/faq/> JL/RC: FAQ of news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.