Randy Johnston & Jan Mckeachie-Johnston – WorkshopSeptember 25, 2010

if ( is_singular( 'your_custom_post_type' ) && get_the_ID() === 123 ) { // True only if it's a single 'your_custom_post_type' with ID 123 }