Detect if there is a next, while in an each loop
<p>I will try and let the code speak for itself here: what if condition can I use to check if there will be another iteration after the current one?</p>

<pre><code>$('#%id% td').each(function(){ 
if(??????????){                       // if there will be a next iteration
while($(this).height() == thisheight){
    // do something here on this iteration, but only if there will be another.
}  
}
});
</code></pre>
