(you can leave out the ```>0``` - if ```length ==0``` this evaluates to
false.)


On Thu, Apr 10, 2014 at 10:51 PM, zuphilip <notifications@github.com> wrote:

> In Amazon.com.js:
>
> >  	item.title = ZU.trimInternal(titleNode.textContent).replace(/(?: [(\[].+[)\]])+$/, "");
> > +	
> > +	var nextLine = get_nextsibling(titleNode);
> > +	
> > +	if (!(ZU.xpath(nextLine, './/a[@href]'))[0]) {//http://www.amazon.com/dp/1118728963
>
> Hm... I guess you are right, because I am also confused now what the line
> is doing. How about that
>
> if ( ZU.xpath(nextLine, './/a[@href]').length > 0 ) {
>
> (I hope it is doing the same...)
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/zotero/translators/pull/708/files#r11518042>
> .
>



-- 
Sebastian Karcher
Ph.D. Candidate
Department of Political Science
Northwestern University