Originally posted by FMFHmm...the code looks correct to me:
Well, perhaps we should complain about both.
document.write('<a class="loggedInInfo" href="/core/gameserve.php">' + nGamesWaiting + ' game' + (nGamesWaiting!=1?'s':'')The part in bold means that an 's' is only added to 'game' when the number of games waiting is not equal to 1.
Originally posted by FMFNaturally, the easiest 'fix' would be to qualify 'gameS' with matched pair parenthesis, 'game(s)' being the result. Personally I don;t think there are any benefits to changing what is already evident here; it's just my opinion based upon the fact that folk already understand the difference, and I'd wager very few would even notice any 'correction' ??
How come this chess site, which is so sophisticated in so many ways, is unable to omit the 's' from games when there is only one game waiting?