Wordpress,如果PAGE是PAGED

In the following case, I need to add to pages that have been paged.

I've come up with the following but it really feels as though there is a better way to do it. Any tips or help would be greatly appreciated:

<?php if( is_page() ):?>

    <?php if ($paged) { ?>
       <meta name="robots" content="noindex,follow" />
    <?php } ?>

<?php endif; ?>

You can do it this way:

<?php if( is_page() && is_paged() ) { ?>
   <meta name="robots" content="noindex,follow" />
<?php } ?>

This will do exactly the same except you don't need to worry about setting the value of the $paged variable which you're using above.