Your code doesn't makes much sense, but I think this is mainly a syntax problem.
Try this:
<?php
if (get_post_meta(get_the_ID(),'post_external_link',true)) {
echo '<a href="'.get_post_meta(get_the_ID(),'post_external_link',true).'" '.$nofollow_tag.'>';
} else...