this code is suppose to see if the ACF variable is empty if not prints html code of globe fa icon with mailto: variable called mail yet its not working any ideas?
<?php
if((the_field('Email'))!=""){
$mail = the_field('Email');
echo '<a href="mailto:'.$mail.'"><i class="fa fa-envelope-o fa-2x"></i></a>';
}
?>