Conditional help.

Hello, I am looking for a Conditional statement that will display an ad after the first post and the last post in the thread. But only if there is more than one post. I have it set up and working to a point. Just missing the part to not display if only one post.

I am getting double leaderboard ads stacked on top of each other, and I think it looks a little tacky.

Any help would be greatly appreciated.
Perfect, exactly what I was after. I tried searching it, however, I just kept getting the list by Brogan. This is solved. Thanks again!