Re: [jQuery] AND OR Expression

2009-12-10 Thread Richard D. Worth
Convert with parseInt and then compare int to int instead of strings https://developer.mozilla.org/En/Core_JavaScript_1.5_Reference/Global_Functions/ParseInt - Richard On Thu, Dec 10, 2009 at 12:26 PM, evanbu...@gmail.com wrote: > I having trouble with this line > > if (td4th.text() > '4') || (

[jQuery] AND OR Expression

2009-12-10 Thread evanbu...@gmail.com
I having trouble with this line if (td4th.text() > '4') || (td4th.text() > '2' && (activeCEO == 'Yes')) In plain English, I want it to be true if td4th > 4 OR td4th > 2 AND activeCEo = 'Yes' Thanks $('#tblBoardDirectors tr').each(function() { var relStatus = ($('td:nth-child