I can’t seem to get this to function correctly because I am not sure where to put the closing curly braces.
<?php if(isset($attr['Material']) && !empty($attr['Material'])){?>
<a href="<?php
global $post;
$material = get_post_meta($post->ID, 'Material', true);
echo wp_get_attachment_url($material);
?>">Download</a>