How to create home page only code?

Is there any way of doing something similar to

if (is_home()) {

this stuff appears of home page in custom section;

echo this is the damn home page;

}else {

if its not on the home page then this stuff appears

echo this is not the home page;


Any idea?

{if $controller == 'index'}
display this
display something else