如果Blog id为AND,如果用户可以

I am running a Wordpress Multisite and using general theme for both site ID 1 and ID 2.

I have placed a div box with a text paragraph into one of the theme's template files :

<article class="content-area">

            <div class="my-div-container">
               <p class="text-message">
                  //message
               </p>
            </div>

</article>

Basically what I am trying to achieve is the following :

If the BLOG ID is 1 and if the user role is "author" in the same time,then display the div with the following message in the text paragraph : "Hello Tester"

But if the BLOG ID is 2 and the user role is "author" in the same time, then display the div with this message instead : "Hi, this is Tester"

But if none of these apply then don't display any div at all.

I am stuck and just can't get my head around it. I am getting syntax errors, but don't know how to fix it. I am trying the following :

<?php
global $blog_id;
if ($blog_id == 1) AND current_user_can('author')) {
   <div class="my-div-container">
                   <p class="text-message">
                      Hello Tester
                   </p>
                </div>
} elseif ($blog_id == 2) AND current_user_can('author')) {
   <div class="my-div-container">
                   <p class="text-message">
                      Hi, this is Tester
                   </p>
                </div>
} else {
//im not sure if this is meant to be left empty to not show anything at all
}
?>

I'm quite new to this and really struggling, could somebody please show me how this can be done ? Many Thanks

if (($expression) && ($expression)) {
}