How to add element after every post in the loop, but not the last one

another possibility:

if( $wp_query->current_post < $wp_query->post_count-1 ) echo '<hr />';