IF registered user has posted X comments THEN do something ELSE do this
I have this nifty piece of code that does this
IF user is <strong>Logged-in</strong> THEN 'do something' ELSE 'do this'
<?php if (is_user_logged_in()): ?>
<p>DO SOMETHING</p>
<?php else: ?>
<p>DO THIS</p>
<?php endif; ?>
But I'd like to know how to adapt this so that the DO SOMETHING also has a condition that the user must have posted at least X comments.
Thanks