How to combine these two php codes into one

This a wrong script and basically I'm trying to combine them into one using the && thingy but I can't quite make it work.

Code (Text):

<?php

 

if (is_archive()) {

<meta name="robots" content="noindex, nofollow" />;

}

 

elseif (is_category()) {

<meta name="robots" content="noindex, nofollow" />;

}

?>

See original post by Mazakustrum

Leave a Reply