How to ‘If Author’ Comments Check

If you use the comment_class function to add classes to each comment, comments by the post’s author can be styled via the bypostauthor class.

You can alternately match the comment ID against the post ID:

global $post;
if( $comment->user_id === $post->post_author ) {
    // is author comment
}