Attatchment names as links back to the attached document in a view

I have forms with multiple attachemnts, I want to show the attachment names as

links back to each attached document, I can do it just fine if i just want to

show an icon as a link but not with @AttachmentNames.

@If(@Attachments; “{<a href='” + @Text(@DocumentUniqueID) + “/$file/” +

@AttachmentNames+ “'>”+“]”; “”);

Any help would be greatly appreciated