Determining if attachment is present in view column

One of the requirements I have for a web app is to determine if an attachment is present in a rich text field. If it is, I need to display a graphic in a view column. I was tring to do something like this below, but it doesn’t appear the word attachment appears in the body field. Any ideas on how to make this work?

@If(@Contains(Field;“attachment”);5;“”)

Subject: Determining if attachment is present in view column

If it’s just any attachment in the document (rather than in a specific field) you can use @attachmentnames

Dan