Condition for Check Single Page

<?php
if( is_front_page() && is_home() ) {
  // This condition will run on if no homepage is selected
}elseif( is_front_page() ) {
  // This condition will run on static homepage is any page is selected as home
} elseif ( is_home() ) {
  // This condition will run only on blog page
} ?>