Check which page is being loaded... IF/ELSE

I want to use a different bit of code in the header depending on if they're on the home page (or maybe some other specific page) or not.

Is there a simple way someone can give me to check 'if page == "page name" then {' (bad pseudo code example).

Any help is appreciated, thanks.

View Replies:
Mnkras replied on at Permalink Reply
if($c->getCollectionID() == HOME_CID) { //homepage
//code if its the homepage
} else { //other page