Find a page is home page or not in joomla

Hi,

i try to just find a page is loaded in my template is home page or not in joomla CMS

this is code i found in net

<?php if(JRequest::getVar(‘view’) == “frontpage” ) : ?>
<!– your home page code –>
<?php else : ?>
<!– your code –>
<?php endif; ?>

you can do you own in home page 🙂