<if $postcounter > 1 then> ... </if>
if($post['pid'] != $thread['firstpost']) { // not first } else { // first }
But either should work.