WordPress multisite condition for certain blog_id’s

Sure, this is easy. The following condition is for all sites with ID equal or higher than 446 that at the same time have a blog title that contains the four letters test next to each other, whether they have intervals around them or not (so keep in mind it will include other words too, like testify or protest unless we change the code a little).

$blog_id = get_current_blog_id();
$blog_details = get_blog_details( $blog_id );
if ( strpos( $blog_details->blogname, 'test' ) !== false && $blog_id >= 446 ) {
    // Run some code here
}