Getting the identity of the current page

Former Member
Former Member

How do I check for the identity of the current custom page in velocity? The closest I can get to that is using

#if ($core_v2_urls.Current == 'Custom')

which returns true if it is a custom page.