if custom field else

<?php
$number = get_post_meta($post->ID, ‘number’, true);
if ( $number ) {
echo ‘there is a custom field value’;
}
else {
echo ‘no custom field value’;
}
?>


if custom field else