Site icon Hip-Hop Website Design and Development

Hide publish date when update date

I was showing publish and update date together,

but I’m trying to do it like this, hide the publish date if there is an update date

<time datetime="<?php the_modified_time( 'c' ); ?>">
                • Update Date: <?php the_modified_time( 'j F Y - H:i' ); ?>
    </time>

    <time datetime="<?php the_time( 'c' ); ?>">
              • Publish Date: <?php the_time( 'j F Y - H:i' ); ?>
    </time>
                 

how can i do it using ‘else if’