can there be any native function in wordpress to see if the page is webpage?

because i wish to have script such as this

if (isHome){
    include 'somescript.php';
}

PS: i personally use wordpress 3..1

thanks,

GusDe

There's a is_home() function, however, you may want to use is_front_page() rather.

See this page for particulars on-page-determining functions.

Yes, is_home() change it out to

if (is_home()){
    include 'somescript.php';
}